i have two problems with my shadow mapping technique implemented on a large terrain :
an image can be found here :
the first problem :
as u can see the top of the montain is not shadowed correctly? how can i eliminate this ?
the second question is:
i tried to setup the light to look always at the viewer position like this :
and i setup an ortho projection for the light projejection
but the problem that is that with this configurations, when the viewer moves u will see the shadow moved,
i think this is not the best way for shadow mapping on large terrain bcoz there is a lot of problems that appears ,
so can someone suggest me any improvements for my method ?