View Full Version : Setup a light
I have tried to set up a light, the light is there but it is rotating with the cube ! why ? I want it to be still
12-13-2000, 09:41 AM
Make sure you are declaring the light's position (GL_POSITION) outside of the matrix manipulations which rotate the cube. Additionally, make sure you are using a value to incrementally change the rotation of the cube (encapsulating within a Push and Pop) and not stacking the rotate calls every frame.
My 2 cents...
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.