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: 24449
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?
My Art: http://l-spiro.deviantart.com/gallery/4844241/Realism My Music: https://soundcloud.com/l-spiro
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums
Members - Reputation: 1087
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.