Search Unity

Missing Shadows on Some Objects

Discussion in 'General Graphics' started by digitaljohn, Sep 1, 2015.

  1. digitaljohn

    digitaljohn

    Joined:
    Aug 14, 2012
    Posts:
    8
    For some reason real-time shadows are missing on some objects and and fine on others. This issue does not happen when in scene view.

    I have been trying to figure out what's going on and figured out its only happening when I have multiple scenes being built in the output. It is also dependant on the order of scenes.

    This screams to me that this is a genuine 'bug' rather than 'user error'.

    If it makes any difference I am using the Legacy Deferred (light prepass) rendering path. I am using 100% real-time shadows, nothing is baked in any scenes. I'm using Unity 5.1.

    Any help greatly appreciated.

    Regards:

    John
     
  2. goonter

    goonter

    Joined:
    Aug 31, 2015
    Posts:
    89
    The fact that it happens in a build and not in the editor leads me to believe it is an issue with a shader Fallback not behaving how you intend. Do these objects use a shader that has a fallback to a shader that doesn't cast a shadow?
     
  3. digitaljohn

    digitaljohn

    Joined:
    Aug 14, 2012
    Posts:
    8
    @goonter. Thanks for your time. This issue has only come up when I export a few scenes in the same build. If I export a single scene it works flawlessly. Regardless, I'm only using standard shaders on the objects that are missing shadows.
     
  4. alexandresk

    alexandresk

    Joined:
    Jul 11, 2013
    Posts:
    51
    Maybe "Project settings: Quality" getting overridden ?
     
  5. digitaljohn

    digitaljohn

    Joined:
    Aug 14, 2012
    Posts:
    8
    @alaxandresk I have no idea how to override that setting do I doubt it.