View Full Version : Bugs with lights.

03-20-2001, 03:20 AM
When I add a light in spot mode, for example, if I rotate the view around a cube, the lightning if different in function of the view angle. is it really a bug og openGl? and exist a method to resolve this problem ?
Thanks for help

03-20-2001, 03:41 AM
If understand it right, your problem is that OpenGL translates the lights position by the current ViewMatrix when setting the lightsource. If you don't wan't tat, you have to set the identity matrix before setting the light.