I’m currently learning custom glsl shader writing. I’m using “shader.setSampler(‘name’,value)” to get a texture from the textures tab (this value corresponding to the texture slot number). At beginning, everything works fine, but it seems that when this “value” is higher than 3, the shader doesn’t find the texture anymore (displays black instead).
Does it means that a custom glsl shader can use 4 textures maximum, or am i missing something ?
Did someone managed to make a custom glsl shader that use 5 textures or more ?