Hi,
Anybody have an idea how to fake lighting on a 2D circle? In the game I'm working on I have several circles that represent planets, and I'd like to light/shade them as if they were lit from a sun, and have the light fall-off to give the circle the appearance of being rounded.
One idea I had was to create a circular "light map" to apply as I draw the circle, but I'd prefer a more dynamic solution, since the planets are randomly placed, and I'd like the sun location to be random too.
Thanks,
Pam
Anybody have an idea how to fake lighting on a 2D circle? In the game I'm working on I have several circles that represent planets, and I'd like to light/shade them as if they were lit from a sun, and have the light fall-off to give the circle the appearance of being rounded.
One idea I had was to create a circular "light map" to apply as I draw the circle, but I'd prefer a more dynamic solution, since the planets are randomly placed, and I'd like the sun location to be random too.
Thanks,
Pam