Help with PCSS

Hello. I want to implement PCSS (percentage-clsoer soft shadows) with GLSL. I udeclare the shadow map as sampler2DShadow to be able to use shadow2DProj. The problem is that PCSS require a blocker search which sample the shadow map to get its contents, not to perform the shadow comparison. The problem is that I want to do both operations on the shadow map (shadow2DProj() and texture2D()) as PCSS require.

Any ideas on how to do this?

Greetings.

Short of using 2 different samplers, no idea.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.