control sun position

rogerdv

15-07-2011 14:56:08

Im making some tests with Caelum and everything goes well until I enable shadows. The problem seems to be that the sun is at the same level as terrain, thus some objects casts almost infinite shadows on the terrain. How can I make sure that the sun appear and disappear at a reasonable level above the "horizont"?

tod

01-09-2011 15:41:41

I am also having problems with this. My idea was to calculate the angle between the light and the horizontal and disable the shadows if too small or enable the shadows for the moon, instead.