Shader doesn't have uniform...
in
Programming Questions
•
3 months ago
i continously get this error : The shader doesn't have a uniform called "normalMap"
but yes it does.
the shader is defined as a TexLight shader and in the fragment shader i defined two uniforms :
uniform sampler2D texture;
uniform sampler2D normalMap;
the sampler2d "texture" will be automatically applied by processing
the normalMap shoud hold the normal map...
when calling : myShader.set("normalMap",normalMap);
then i get this error.
Please can someone help me...i think this error might be caused by processing trying to help managing the uniforms - but whatever it is - i cant track down the problem.
1