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
- Incorrect selection range is reported when selecting text across lines in a multiline TextField
- Tile Palette: Blurry selection icon and inconsistent padding in brush selection dropdown
- Player crash when a specific project is built with Vulkan
- Long Tile Palette name breaks window UI
- UI Builder Project Library foldouts do not open when pressed on the foldout name
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