gl_LightSource[] does not work with a dynamic variable on ATI X1550 with latest drive

In the vert shader this return light 0’s color:

int i=0;
gl_FrontColor=gl_LightSource[i].diffuse;

This returns light 0’s color:

int i=1;
gl_FrontColor=gl_LightSource[i].diffuse;

This returns light 1’s color:
gl_FrontColor=gl_LightSource[1].diffuse;

Mmmh, you messed up your post isn’t it ? Otherwise I don’t see anything wrong…

It’s corrected to show the error.

SpotCutOff and SpotDirection do not work as well.

Everything is fine on my 8800 GTS.

Do you mean Catalyst v7.7?? I know ATI mentioned they had some bugs in v7.7 in which v7.8 was the one they preferred we upgrade to…

Get v7.8 when it is released.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.