Unity Issue Tracker - Disabling SSAO instead of removing it prevents shadow casting
Closed
UUM-24662
Disabling SSAO instead of removing it prevents shadow casting
Unity: Graphics XR
Won't Fix
2023.1.X
2022.2.X
2021.3.X
Not reproducible anymore on 2021.3.33f1, 2022.3.17f1, 2023.2.4f1, 2023.3.0b1
Reproduction steps:
1. Open the user’s attached project “ReproProject”
2. Open “Assets/Scenes/Main” Scene and add it to the “Scenes in Build” in Build Settings
3. Open “Assets/_MyAsssets/Settings” and select “URP-Balanced-Render” and make sure “SSAO Render Feature” isn’t added to it in the Inspector window
4. Build and Run on an Oculus 2
5. Observe the shadows projecting off of cubes, which are moving around you
6. Open “Assets/_MyAsssets/Settings” and select “URP-Balanced-Render”
7. In the Inspector window select “Add Renderer Feature” and select “Screen Space Ambient Occlusion” and disable it
8. Build and Run on an Oculus 2
9. Observe the shadows again
Expected result: Disabling SSAO works the same way as removing the component
Actual result: Disabling SSAO makes shadows disappear
Reproducible with: 2021.3.16f1, 2022.2.2f1, 2023.1.0a25
Couldn’t test with: 2020.3.43f1 (Project doesn’t start on Oculus)