Jump to content
  • Advertisement
Sign in to follow this  
RobMaddison

Shadowmap artefacts

This topic is 2566 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 was just daydreaming about shadowmap artefacts and was wondering if anyone has tried rotating shadowmap texels to match the normal of the geometry being checked (in the draw phase). I guess the reason for the artefacts are that each shadow map 'texel' (not pixel), when slightly scaled up sits on same plane as the near (and far) plane of the light frustum.

If you're checking a particular pixel is in shadow on a model's polygon which is almost perpendicular to the normal of the shadowmap, the shadow map texel will effectively 'stick out' of the polygon creating the artifact. Can we somehow rotate the whole shadowmap texel to match the polygon's normal and sample from that rotated texel instead? By sample, I mean take the centre point of the shadowmap texel and calculate what the depth would effectively be in any area of the texel when rotated...

Share this post


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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!