Although the distance from the light source is useful and more natural. I would want to do it the distance from the casting object as well.
Games aren't always about realism. In my game I could probably manage with one 'directional' lightsource (the sun). This may even simplify the number of tforms you need in your shadow code, maybe?
Catch me on IRC chat (UK/US time) if you want to talk it through.
Games aren't always about realism. In my game I could probably manage with one 'directional' lightsource (the sun). This may even simplify the number of tforms you need in your shadow code, maybe?
Catch me on IRC chat (UK/US time) if you want to talk it through.