View Full Version : constant lighting position

01-22-2002, 05:21 AM
Hi guys,
i have a problem with light in my program that lets you move around in a 3d enviroment: when i move the camera, the lighting on the objects changes, as if the light source would be moving around with the camera.. how can i fix that (so it gives the impression that there is a light at a constant position shining in a certain direction)

01-22-2002, 07:24 AM
Set the light position after you modify the modelview matrix.

01-22-2002, 08:40 AM
Jep, works great. Just what i needed. Thanks alot there