Different Projection matrices for shadow mapping(Lesson 7)
XiaofanLinUS opened this issue · 2 comments
XiaofanLinUS commented
I see that you use orthogonal projection matrix to create shadow map.
However, I am curious if it is possible to use perspective matrix instead. I am not sure if my tuition is right. For directional light like sun, orthogonal projection matrix is used since the light rays are parallel. But for the point light, since light converges to a single point, it is better to use perspective matrix?
If it is possible for point light to use perspective projection to create shadow map. How are the parameters in the perspective matrix adjusted to match a proper point light condition. Thanks.
Sincerely,
Xiaofan
ssloy commented
XiaofanLinUS commented
k