Sign in to follow this  
hl1202

Light Projection Matrix

Recommended Posts

I have a question on Light Projection Matrix, the question is based on the "Shadow Mapping" Demo of Microsoft DirectX SDK In this Demo, they create a g_LCamera, the Camera of the Light My question is : What does the g_LCamera.GetProjMatrix() mean? Because when they render The Shadow map (Under the Light view point), it comes to the Projection Matrix. I think they should use the matrix of g_LCamera.GetProjMatrix(). But they didn't. They use a g_mShadowProj matrix which was initialized before D3DXMatrixPerspectiveFovLH ( &g_mShadowProj, g_fLightFov, 1, 0.01f, 100.0f); ============================================== So why don't they use the g_LCamera. It is the Camera of the Light, and i think the g_LCamera.GetProjMatrix() is the Projection matrix?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this