Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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.