Search Unity

Issues with disappearing real-time shadows

Discussion in 'General Graphics' started by L4Z3RC47, Dec 3, 2018.

  1. L4Z3RC47

    L4Z3RC47

    Joined:
    Jun 21, 2015
    Posts:
    46
    I've been trying for a while to figure out whats going on here but haven't been able to find a solution. Anyone else having trouble with real-time shadows disappearing on terrain? So far ive tried just about everything in lighting, terrain, and quality settings to no effect. Any insights would be greatly appreciated!

     
  2. i4mtheone

    i4mtheone

    Joined:
    May 16, 2018
    Posts:
    11
    Hi there!

    Did you find a solution? I've just encountered this problem with Unity 2018.3.2f1

    I'm doing a VR app as well with terrain
     
  3. porcallo

    porcallo

    Joined:
    Nov 4, 2015
    Posts:
    1

    Try marking your light (or lights) as importan ... select your light, in inspector go to Light>Reder Mode>
    Important
     
  4. L4Z3RC47

    L4Z3RC47

    Joined:
    Jun 21, 2015
    Posts:
    46
    Yea, I've done that in the past. Marking lights as important has no effect.
     
  5. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,343
    It looks more like your trees are getting culled from the shadow map pass rather than the terrain completely loosing shadows. It’s hard to tell exactly what’s happening though. Usually this is because the bounds for the tree meshes you’re using aren’t fully covering the meshes for some reason, like if you’re using a shader to animate them or are using custom instancing that isn’t setup properly on the c# side.