-
Junior Member
Regular Contributor
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
-
Junior Member
Regular Contributor
Re: Setup a light
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules