View Full Version : where does light...
06-21-2004, 03:09 PM
when I use GL_POSITION, where does it put the light. Before all my glRotates and Translates or after the final one. The same with GL_SPOT_DIRECTION. thank you
The GL_LIGHT_POSITION will affect the coordinate system that is currently in use. if you have modified the coordinate system by rotates and translates then it will be in the modified one. however u can get around this problem by not actually affecting the modelview matrix by undoing changes using glPushMatrix() & glPopMatrix()
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.