Look this:
....
struct Light
{
...
}
uniform Light u_lights[4];
for(int i = 0 ; i<4 ;i++)
{
...
//Then use i index u_lights array.
totalSpecularColor += u_lights[i].specular *specular_bsdf;//Then GLSL can not get u_lights[i].specular vaule
When I write like this: u_lights[0].specular ,then I can get the value. why? Help me,please.
...
}