Moving Directional Light's not working in DX

Started by
0 comments, last by Muhammad Haggag 17 years, 4 months ago
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 ?
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.

This topic is closed to new replies.

Advertisement