View Full Version : light position

03-11-2001, 08:56 AM
ive got a question about light source positioning.

basically, i just draw a few objects and translate / rotate them.
ive also got a light source located in the scene. when i roatete the object im viewing, the shading doesnt look quite right, its as if the light source always stays at the same distance and orientation with my object.

any ideas?

03-11-2001, 11:20 AM
If you specify the position of the light after the transformations, you move the light with your objects.
If you want the objects to move and the light not, you must draw it before or after resetting the matrix to identity.