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)
Set the light position after you modify the modelview matrix.
Jep, works great. Just what i needed. Thanks alot there