sfan5 wrote:philipbenr wrote:@sfan5: You have to be able to know where the sun/moon is at the time of day/night to make shadows in the first place... I think you are capable of that?
That is not hard, but whole way shadows are computed, stored & displayed is not that easy to get right.
GLSL isn't like C where you can google something and throw it into your project.
I have to say, that made me laugh. :)
Also, and this is from experience, the little bits help a lot... I would just write something up that says where the sun/moon is in the sky. I really haven't looked in to how position is expressed, but give a sort of value that can be used to determine shadow length.
Again, I don't know how hard that would be, but it's a start...