where does light...

when I use GL_POSITION, where does it put the light. Before all my glRotates and Translates or after the final one. The same with GL_SPOT_DIRECTION. thank you

The GL_LIGHT_POSITION will affect the coordinate system that is currently in use. if you have modified the coordinate system by rotates and translates then it will be in the modified one. however u can get around this problem by not actually affecting the modelview matrix by undoing changes using glPushMatrix() & glPopMatrix()