Is gl_LightSource.position transformed?


if I do:
glLight ( GL_POSITION,0,0,0);

will gl_LightSource.Position be transformed?

Yes, the light position is transformed by the modelview matrix in which you perform the call. See . :slight_smile:

well, I’ve got a problem then.
nVidia’s implementation returns transformed coordinates, but with ATI cards, gl_LightSource[0].position is NOT transformed by the modelview.

According to the spec it should be transformed so I’m guessing it’s a bug with the ATI drivers.

For me ATI Drivers did Transform the coordniates. But you have to make shure that your w coordinate of the Light position is 1 otherwise it is treated as an directional light source.

I think this was recently fixed by AMD/ATI.

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