• Advertisement
Sign in to follow this  

Shadow artifacts on plane parallel to light

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

Hello. I'm using directional light. And on parallel to light direction plane I have flickering artifacts (in the picture the side of cube is shaded and actually it blinks every frame, so if I move camera a little - different faces shaded differently). I don't want to use any other lightning (lambertian etc) - only pure color + shadows. And to be honest, I can't understand why there're such artifacts. And is there any way to remove shadow aliasing on sphere? I'm working with mobile so I can't afford myself bluring or even pcf.

Share this post


Link to post
Share on other sites
Advertisement

Use binary light model so all bakcfaces get full shadow always. color = dot(n, l) > 0 ? color * shadow : 0;

Share this post


Link to post
Share on other sites

And is there any way to remove shadow aliasing on sphere?

You may need to provide an image of what is happening but you should be adding a small offset to the shadow-map test so that the shadow is slightly further back than it actually is.


L. Spiro

Share this post


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

  • Advertisement