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.
Shadow artifacts on plane parallel to light
Crossbones+ - Reputation: 16254
Posted 31 March 2014 - 05:13 PM
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.
And is there any way to remove shadow aliasing on sphere?
I spent most of my life learning the courage it takes to go out and get what I want. Now that I have it, I am not sure exactly what it is that I want. - L. Spiro 2013
I went to my local Subway once to find some guy yelling at the staff. When someone finally came to take my order and asked, “May I help you?”, I replied, “Yeah, I’ll have one asshole to go.”
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums
Members - Reputation: 689
Posted 01 April 2014 - 01:32 AM
Oh, sorry, I forgot to attach a picture.
This aliasing on the sphere... I tried different bias values but it still there.
@kalle_h, thank you, good approach.
Edited by Volgogradetzzz, 01 April 2014 - 01:32 AM.