🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Lights moving with the world

Started by
1 comment, last by David20321 24 years, 1 month ago
How can I get my light source to move with the world? It looks really dumb when the light just moves around with the camera.
Advertisement
You need to position your light source after you do your camera transforms, not before.
You can do what Cereal Killah said or you can still do it whenever you want as long as you push the old matrix onto the stack, load the identity matrix, position your lights, then pop off the old matrix, but I would just do it first thing

B

This topic is closed to new replies.

Advertisement