Hi,
why do I get a shader compile error when I try to put this code in my vertex shader:
vec3 lightColor[1] = vec3[](vec3(1,1,1));
but this works:
vec3 lightColor[2] = vec3[](vec3(1,1,1),vec3(1,1,1));
If GLSL doesn't allow me to initialize my single-element array this way, how can I do it?
Rob.