• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
9
Question by sebeisdrache · Mar 04, 2015 at 10:56 PM · unity5shadowsdirectional lightflicker

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?

Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SnotE101 · Mar 08, 2015 at 01:31 AM 1
Share

Any luck? Having the same issue.

avatar image Mutrumbo · Mar 08, 2015 at 03:18 AM 1
Share

$$anonymous$$y $$anonymous$$m is also encountering this situation using a Directional Light.

avatar image polykos · Mar 10, 2015 at 11:24 PM 1
Share

same issue since I've updated Unity to 5.0 :(

avatar image sebeisdrache · Mar 11, 2015 at 12:41 AM 0
Share

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.

avatar image hypnoticmeteor · Mar 11, 2015 at 01:06 AM 0
Share

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.

Show more comments

24 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by kielinen · Feb 16, 2018 at 09:35 PM

The issue is the camera draw distance. Select your cameras, and Reduce the far clipping from current to 3000 or less and it should disappear. Had the same issue for almost a week. Nothing helped, then I added a new camera, and it was gone. Reverted to save, added the new camera and compared. The only difference was the far clip.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by chrisheinrich · May 18, 2018 at 03:33 PM

After spending many hours trying to figure out why shadows were flickering on all my devices with A11 chips (iphone 8s and X), and trying everything on this forum as well as many others, I finally fixed my issue by setting the 'render mode' of the lights in my scene that cast shadows to 'Important' (old setting was auto, which explains why sometimes the issue was present and sometimes not). In my scene I only have one light casting shadows, so it works to set it to important.

////// Other things I tried that did not fix my issue - adjusting cascades - adjusting biases - adjusting near/far clip planes - adjusting color space (linear or gamma) - adjusting resolution - adjusting shadow fit

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by ESludden · May 28, 2018 at 11:28 AM

Not sure if this is helpful, but I noticed that I would get a lot of Directional light shadow flickering if the Rotation of the Directional Light was set to something like x = 90, y = 0, z,= 0. So I had my light pointing straight down which produced the flickering. I fixed this by giving the light a small rotational offset and the flickering went away.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Bob-King · Apr 22, 2019 at 04:10 AM

Change shadow projection to close fit.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • ‹
  • 1
  • 2
  • 3
  • 4
  • 5

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

59 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Huge unknown shadow in scene [android] 1 Answer

Directional light Shadow either Hard or No shadow on iOS 0 Answers

Unity 5.0 buggy shadows 1 Answer

How do you stop shadows from casting through meshes? 0 Answers

How to use trail renderer with directional light shadows enabled? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges