Jump to content
  • Advertisement
Sign in to follow this  

Poisson-disk shadows filtering

This topic is 1874 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



I am trying to understand, how this technique is working.


I am using standard PCF technique


// PCF 3x3
for(int x = -pcf; x<=pcf; ++x )
   for(int y = -pcf; y<=pcf; ++y )
	 float realDepth  = shadowTexture.SampleLevel(ss,float2(lightWorldPosition.x*0.5+(cascade*0.5)+shadowTexel.x*x, -lightWorldPosition.y+shadowTexel.y*y),0 );
	 if( lightWorldPosition.z > realDepth+bias ) {} else shadowFinalColor += 1.0;



But for good looking shadows, i have to use higher pcf values, which is not a good way. Also, my code can be better i know, it¨s just for testing.

What's a easiest way to get possion.disk filtering working ? I will be happy with some snippets.


thank you very much !

Share this post

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!