PDA

View Full Version : gl_LightSource[] does not work with a dynamic variable on ATI X1550 with latest drive



Leadwerks
08-04-2007, 03:49 PM
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;

ZbuffeR
08-04-2007, 04:59 PM
Mmmh, you messed up your post isn't it ? Otherwise I don't see anything wrong...

Leadwerks
08-04-2007, 05:25 PM
It's corrected to show the error.

SpotCutOff and SpotDirection do not work as well.

Everything is fine on my 8800 GTS.

MayBird
08-07-2007, 12:45 PM
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.