• Advertisement

Archived

This topic is now archived and is closed to further replies.

moving light

This topic is 5749 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I update my LightPosition values and call glLightfv(GL_LIGHT1, GL_POSITION, LightPosition) at the beginning of drawing the scene, but the light doesn''t move. What am I doing wrong?

Share this post


Link to post
Share on other sites
Advertisement
Oops, very sorry for making you read this dumb question. glLightfv(GL_LIGHT1, GL_POSITION, LightPosition) works like a charm. My problem was an error in the algorithm that updated the light''s position.

Share this post


Link to post
Share on other sites

  • Advertisement