I wonder if there is limit to 3 texture channels in glsl shaders.
I can access texture channels from 0 to 2 without any problem and I can see colors without any problem. But when I do i.e. :
Code: Select all
shader.setSampler('lightmap', 3)
But I need four textures: diffuse, normalmap, displacemap and lightmap and only have access to 3 at once.
Is this a bug or some limitation I don't know?