Search Unity

Question Weird Shadow bug.

Discussion in 'General Graphics' started by Master_Zen, Nov 11, 2020.

  1. Master_Zen

    Master_Zen

    Joined:
    Apr 2, 2017
    Posts:
    20
    Hi there,
    we just encountered a pretty weird shadow bug, here is a video.



    So first of all this is mobile game and the videos were recorded on an iPhone.
    This issue semms to only appears on iOS.

    Here are some general information:
    - Unity Version 2020.1.6f1
    - We are using the URP 8.2.0
    - We have one light source (a directional light) which isn't rotating.
    - There are no light maps / global illumination (only realtime shadows)
    - The geometry consists of pretty low poly assets. The Ground is basically just one plane.
    - We have some custom shaders (e.g. for the portal, frozen water, crystals), but only one of them is using the fragment shader (the others don't even change normals), but the objects, which shadows are flying do not use shaders, acting on the geometry.
    - This build was made using Cloud build and the latest compatible xCode version.
    - Player>Other Settings>Auto Graphics API is checked.

    If there are further information you need to know, please feel free to ask for them.

    Thanks in advance for any help.
     
    KnirpsAnemone likes this.
  2. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,076
    Do you have any objects, or (objects that were made invisible), on another different layer, or on the same layer as your visible objects?
     
  3. Master_Zen

    Master_Zen

    Joined:
    Apr 2, 2017
    Posts:
    20
    We have three custom layers: world, tiles and particles. Most of the geometry has the world layer, some have the default layer and particels the particle layer. We have a setting to turn off particels, which toggles the particle layer in the culling mask of our main camera.