Hello everyone.
I was studying and implementing a shadow mapping, then I had some doubts, for example:
In my study (and everyone I saw in the tutorials) the distance is very short, I wanted to know how this is implemented in a biggest scenario, because if I use it as a vision of the sun, I think it would weigh heavily. So, correct me if I'm wrong, should I do my depth map / shadow mapping at a distance near the camera and follow it as I (the camera) walk? example (in scroll side):
another doubt is the best way to add my shadow. Currently I have my framebuffer to implement deferred shading, and all information I save in a separate attachment (position, normal, light ....). But the shadow mapping I apply only in my final shader (combine final). I was wondering if the best way would be the same in my finalCombineShader or is it generating the shadow in a separate attachment as I'm rendering my models? (as I do with the position attachment, normal ...)
This is my final result:
Could someone get me those doubts?
Thank