- Home /
Flickering shadows
So I made a day cycle script which makes the directional light rotate and the tree shadows are flickering now. video.
Answer by Namey5 · Apr 06, 2020 at 11:41 PM
These are simply low resolution artefacts. You can either increase your shadowmap resolution, lower your max shadow distance or readjust your cascade distances in the quality settings (use four shadow cascades if you aren't already).
Ok, su I decreased the shadow distance but now the shadows are very hard and not blurry. How can I fix that?
Unfortunately that is the tradeoff you have to make. Shadow filtering (at least the way Unity does it by default) is bound to shadow resolution - the higher the resolution, the sharper the shadows. The only way to get around this would be to use custom shadow filtering, i.e.
https://assetstore.unity.com/packages/vfx/shaders/next-gen-soft-shadows-137380
Your answer