- Home /
Unity 5 Directional Light Shadow Flicker
Hello, after I updated my project to Unity 5 all of the shadows starting to flicker. In Unity 4.6 was no flicker with the setup.
Maybe is this a known bug?
$$anonymous$$y $$anonymous$$m is also encountering this situation using a Directional Light.
It seams to be an Z-Buffer Issue, try a other near clipping distance to the camera.
I hope this will be fixed in the future.
Lights flicker when deferred rendering is not selected and DX11 is being used or maybe the opposite.
It used to happen to me sometime back, don't remember exactly but I did something in player settings which had to do with DX and rendering mode.
Answer by wjduhe · Jun 05, 2015 at 05:27 PM
Changing the near clipping distance of my cameras from .01 to .1 fixed the flickering for me.
go to 'Edit/Project Settings/Quality' click rendering preset fantastic and change shadow cascade to two not four
Answer by bellatesla · Sep 20, 2015 at 08:29 PM
[Fixed] I came across this issue as well today I am posting because I actually found the answer to shadows flickering and what not with out the help of the forums.
After trying every setting I narrowed it down to the cascade distances of the shadows. After adjusting the "cascade splits" and "total cascades" I was able to remove this flicker effect completely. They are set to a default setting and depending on the camera ditance to your world you will want to adjust these to fit your needs. I hope this helps someone.
Thanks @bellatesla, I was able to find a workaround for this bizzare issue in forward rendering mode. The issue goes away in deferred, but some of my assets aren't compatible yet so this was helpful.
Hm. It turns out that this actually only helped mask the issue. The flickering was present in deferred as well, just not as visibly. It turns out that one of my assets automatically added a special global fog image effect to the main camera which made AA apply ahead of it. I adjusted the order so that AA was last in line and the issue disappeared entirely .
Oh, Thank You very much, bro! I've been struggling with this for days... I've tried everything, literally everything. And only your solution worked. Changing $$anonymous$$ain Camera Rendering Path to "Deferred" solved my issue completely. God Bless You! Cheers!
Answer by karpae2k · Nov 30, 2015 at 06:16 PM
I had this problem after adding a huge plane in the scene (water). So turn receive and cast shadows off on the plane or huge object. Worked for me
I had a weird gradient appearing in the shadows and turned out to be a massive floor bouncing light all over the place. Removed shadow from floor and added fake small floor to pick up the shadow and now works fine so HUGE thanks to @karpae2k for suggesting this
Answer by Andrew-Garrison · Jun 06, 2015 at 03:44 PM
We're having the same issue. Moving the znear from 0.1 to 1 improves the flickering, but is not an acceptable solution for our project.
Answer by PeterB · Mar 18, 2015 at 11:43 PM
Same issue here. Deferred, linear, HDR (and I made sure of it).
Your answer
Follow this Question
Related Questions
Directional light Shadow either Hard or No shadow on iOS 0 Answers
Huge unknown shadow in scene [android] 1 Answer
Hard directional shadows? 3 Answers