Archived

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

DDSquad

moving light

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
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