- Home /
Moving Directional Light Shadow Flickering
I have spent half a day trying to figure this out and just can't seem to figure out what is happening.
After about 30 seconds of clicking 'Play' the shadows begin to do this.
Shadow 1: https://i.gyazo.com/603a32c34c12f4d52058d6d19431640d.gif
After 45 seconds, the shadows get worse and do this.
Shadow 2: https://i.gyazo.com/b12426ded48d831c8a0a7844eec9d28f.gif
[preview of external content removed for GDPR compliance as it was including 3rd party cookies]
What have I tried?
Changing around the 'Shadow Distance'
Changing the 'Shadow Cascades' to none, two and four and playing around with 'Cascade splits'.
Changing camera clipping from 0.1 to 0.4, 0.5, 1.0, 2.0 and max clipping to 10,000, 1000, 500.
Changing camera rendering mode to 'Deferred'.
Changing Directional Light shadows from soft to hard and the bias settings.
Changed the lighting to 'Linear' lighting in the 'Player Settings'.
What's in the scene?
Town is made of mesh colliders and all scene's models are a scale of 1.0.
EnviroSky system has a directional light moving up and downwards based on time.
Either way, I believe it's nothing to do with the EnviroSky system, but more based on the directional light of the system of how it's moving around. I really don't know what is going on anymore, is this a bug I am dealing with?
What Unity version am I on?
I am currently on Unity 5.6.0f3.
Answer by kielinen · Feb 16, 2018 at 09:33 PM
The issue is the camera draw distance. Select your cameras, and Reduce the far clipping from current to 3000 and it should disappear.
Answer by unidad2pete · Aug 27, 2017 at 07:33 PM
Im not sure, but seems problems with bias of lights, on inspector, section shadow of your directional light, have 3 options of bias, are you tried to change the sliders in runtime to see if that is the problem?
Yes, I have tweaked every setting mentioned above in run-time.
Answer by ritendev · May 03, 2019 at 10:03 AM
I have same problem with new client... tried everything, I can make it flicker less, but it's not acceptable
Answer by Dhruvgreat · Jul 30, 2021 at 11:31 AM
not changing far clip not solve the problem, issue is same as first. please help us . and i also want too ask that this will also happen when we export our game please reply. thanks in advance
Your answer
Follow this Question
Related Questions
HDRP High Quality Shadow Filtering really noisy for some reason 0 Answers
Shadows not behaving as expected with spot lights 1 Answer
How do you stop shadows from casting through meshes? 0 Answers
Hard directional shadows? 3 Answers
Point lights are killing my directional light's cast shadows. 1 Answer