PDA

View Full Version : light position



hoshi55
03-11-2001, 09: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?

Teofuzz
03-11-2001, 12:20 PM
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.
tFz