PDA

View Full Version : Setup a light



McZ
12-13-2000, 09:37 AM
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, 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...

Glossifah