Advertisement Jump to content
Sign in to follow this  
Volgogradetzzz

Shadow artifacts on plane parallel to light

This topic is 1751 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
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!