I'm currently experimenting with a custom depthmap shadow system.
I already got pointlights with shadows working.
But currently I'm stuck at the spotlights because I have no idea how the Projection matrix is calculated.
Can someone explain how to calculate the Projection matrix using the ligth-camera position, direction and FOV?
Or point me to the pice of code inside Ogre that calculates it?
How is the Spotlight Projectionmatrix calculated?
-
- Goblin
- Posts: 253
- Joined: Sat Sep 28, 2013 3:46 pm
- x 10