Search Issue Tracker
By Design
Votes
0
Found in
2020.3.47f1
2021.3.21f1
2022.2.12f1
2023.1.0b9
2023.2.0a6
Issue ID
UUM-32233
Regression
No
Shadows don't update when the Cascade Count is set to 1
Steps to reproduce:
1. Open the “ARShadowDemo” project
2. Select the “URP-HighFidelity” URP Asset
3. In the Inspector window set Cascade Count to 2
4. Observe the shadows in the Scene view while moving the Scene view Camera
5. Set Cascade Count to 1
6. Observe the shadows in the Scene view while moving the Scene view Camera
Expected result: The shadows update regardless of Cascade Count
Actual result: The shadows don’t update when the Cascade Count is set to 1
Reproducible with: 2020.3.47f1, 2021.3.21f1, 2022.2.12f1, 2023.1.0b9, 2023.2.0a6
Reproduced on: macOS Monterey 12.2 (Intel)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Filters dropdown: Window doesn't rescale on items collapse
- Sprite Preview is broken when the Sprite is too tall or too wide
- Objects are invisible in Scene view when using Wireframe Shading Mode
- Physics.Raycast does not work when used on the whole model
- Shader Graph changes the Position of Prefab instances in Play mode
Resolution Note:
The issue is the keyword declaration in the CustomLighting.hlsl file.
It's set up as two different keywords that are always enabled:
#pragma multi_compile _MAIN_LIGHT_SHADOWS
#pragma multi_compile _MAIN_LIGHT_SHADOWS_CASCADE
But in the way URP works is that shadows can be disabled or one of the shadow modes can be enabled. The issue is fixed by replacing those two lines with:
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE