so you take the hight of a point in the terrain and then see if there are neighbors lower
then it against the sun position, and paint the shadows this way?