Shadow mapping with deffered shading for directional lights - shadow map projection problem
- by Harry
I'm trying to implement shadow mapping to my engine. I started with directional lights because they seemed to be the easiest one, but I was wrong :) I have implemented deferred shading and I retrieve position from depth. I think that there is the biggest problem but code looks ok for me.
Now more about problem:
Shadow map projected onto meshes…