Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

URP No Cascade for shadows causing black camera (2019.3.0f1 & 3.1.0 p1)

Discussion in 'AR' started by TeorikDeli, Dec 6, 2019.

  1. TeorikDeli

    TeorikDeli

    Joined:
    Apr 6, 2014
    Posts:
    146
    I think nobody is checking the arfoundation github issues, so maybe someone will write here.

    Changing URP's shadows setting "Cascade" to "No cascade" creates an error for Unlit/ARKitURPBackground shader and gives black camera background. But, I think the reflection probes works normally, because I can see their textures.

    The error:

    "Metal: Error creating pipeline state (Unlit/ARKitURPBackground): depthAttachmentPixelFormat is not valid and shader writes to depth"

    I am solving this problem with removing the depth of fragment_output in ARKitURPBackground shader. It is not an ideal solution if the Human Segmentation is active and also Unity is always reverting my changes for this shader after opening the project again.

    Device: iPhone 8 iOS 13.2.3
    Xcode: 11.2.1 (GM)
    Unity: 2019.3.0f1
    AR Foundation (and ARKit, ARCore): preview.1 - 3.1.0