Greetings:
I would like to set up a light properties structure in the vertex shader - something like

Code :
struct Light
{
   uniform vec4 ambientColors;
   etc.
};

and then specify a light in the shader

Code :
Light light0;

Finally, I want to assign light properties from within the app program with

Code :
glGetUniformLocation(programId, "light0.ambientColors");
etc.

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?

Thanks,
Sam