View Full Version : where does light...
06-21-2004, 02: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.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.