View Full Version : light position

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

basically, i just draw a few objects and translate / rotate them.
iīve also got a light source located in the scene. when i roatete the object iīm viewing, the shading doesnīt look quite right, itīs 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.