Hi.
I have successfully implemented shadow mapping in directx 11. Only directional light shadows though. My problem is my current shadow viewproj matrix doesn't cover entire world. If I make it large shadow quality will drop. I need to move my viewproj matrix with camera. I tried translating matrix to my camera pos but it doesn't work. I searched online and found something about calculating viewproj matrix from current camera projection matrix but I didn't found enough resources to fully understand it. Can someone explain me? I will really appreciate it.
Thank you for you time.