• Advertisement
Sign in to follow this  

Moving Directional Light's not working in DX

This topic is 4070 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

G'day I'm trying to set up a moving directional light that just cycles between (0,1,1) and (0,-1,1). I've got the vector calculations working fine, and the _D3DLIGHT9 structure is being updated properly but the light doesn't appear to move. I also tried calling SetLight() each time I update the vector, but that doesn't seem to change anything either. Any ideas ?

Share this post


Link to post
Share on other sites
Advertisement
Directional lights are just that--directional. They have no position, so you can't move them. You can only change their direction. Thus, it makes sense to use them for far-away light sources, like the sun.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement