• Advertisement
Sign in to follow this  

PCSS with directional light.

This topic is 2415 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[color="#333333"]I am implementing PCSS and I am using a directional light. The directional light volume is clamped to the camera frustum (as is typical with directional lights). So when the camera rotates, the directional light volume can find a tighter bound on the camera frustum in some cases, and then all of the depth values can increase/decrease.

This causes the blocker search to find different blocker distances from the light source, and so the penumbra sizes change based on the camera rotation.

Has anyone dealt with this problem before? How can I compensate for changes to the light depth map (aka shadow map) when the camera rotates?



Here are some images demonstrating two camera views, visualizing the penumbra values (brighter indicates where a larger penumbra should go) and the corresponding light depth maps (shadow maps):

[color="#333333"]wD6ry.png

[color="#333333"]EQ0vmh.png

[color="#333333"]fon5i.png

[color="#333333"]UszNQh.png

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement