Disappearing Shadows: Deferred Lighting

Hey folks,

Hitting my head against the wall a bit. What is happening in my scene is that when I look around my shadows are being completely disabled at certain angles and I have no idea why!

I have played with as many settings I can think of in the quality section, directional light and the mesh in question.

Reckon this is something I should file a bug report for?

My project is setup in with deferred lighting, linear colour space, shadows are enabled as hard, near plane 0, far plane 40 (make no difference if I jump it up to 200+), 2 cascades (still happens with 4), medium quality (also happens in highest), stable fit (goes mad in close fit!)

Got a single directional light in my scene, it has hard shadows on, bias max, normal min, near plane min and tried many other combos.

My meshes have shadows set to two sided, and has all the static flags set as true.

Is this in a project that’s been upgraded from one version of Unity to another? Does it happen in a new scene?

1 Like

Oh good idea! It is indeed a project that has been upgraded many times. Testing a new scene now.

Edit: Might be onto something here. Taking one of my custom meshes and saving it as an asset, then importing it into a new scene shows the shadows, but not in the existing scene :confused:

Edit 2: I think my existing directional light just had subtler lighting compared to a fresh scenes light. Coping in the default directional light showed shadows on that object again but my problem sadly still persists!

FYI Unity got back to me and acknowledged this as a bug:

“We have been able to reproduce this bug and have sent it for resolution with our developers.
It seems that shadows are only visible when object with specific material is in camera’s field
of view (such as your chunk pickups). This is also happening in the scene view.”