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
Glossifah
12-13-2000, 08: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...
Glossifah
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.