Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question occlusion and shadows not working at the same time

Discussion in 'AR' started by edwon, Mar 29, 2024.

  1. edwon


    Apr 24, 2011
    I am using AROcclusionManager to make sure objects are occluded in the scene.

    I also have a shader on the ARMeshManager spawned prefab that renders shadows from AR objects.

    Unfortunately the ARMesh / shadows are being partially occluded by the occlusion/depth map. I have not been able to find a way to force the shadows to render on top of only occlusion.

    Is there a way to have occlusion and shadows on the world mesh at the same time? Is there an example of this working somewhere?

    • iPhone 15 Pro
    • Unity 2022.3.22f1
    • URP render pipeline