Search Issue Tracker
By Design
By Design in 2023.2.X
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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
Resolution Note (2023.2.X):
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