Uniforms inside a GLSL structure
I would like to set up a light properties structure in the vertex shader - something like
uniform vec4 ambientColors;
and then specify a light in the shader
Finally, I want to assign light properties from within the app program with
But this doesn't work. It seems the uniform declaration of a structure member isn't acceptable. Is this the case or am I missing something?