Legacy Documentation: Version 4.6
Language: English
Directional Shadow Details
Shadow Size Computation

Troubleshooting Shadows

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

This page lists solutions to common shadow problems.

  • Shadows require certain graphics hardware support. See Shadows page for details.
  • Check if shadows are not completely disabled in Quality Settings.

Some of my objects do not cast or receive shadows

First, the Renderer has to have Receive Shadows on to have shadows on itself; and Cast Shadows on to cast shadows on other objects (both are on by default).

Next, only opaque objects cast and receive shadows; that means if you use built-in Transparent or Particle shaders then you’ll get no shadows. In most cases it’s possible to use Transparent Cutout shaders (for objects like fences, vegetation etc.) instead. If you use custom written Shaders, they have to be pixel-lit and use the Geometry render queue. Objects using VertexLit shaders do not receive shadows either (but can cast shadows just fine).

Finally, in Forward rendering path, only the brightest directional light can cast shadows. If you want to have many shadow casting lights, you need to use Deferred Lighting rendering path.

Directional Shadow Details
Shadow Size Computation