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
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
- Crash on ModelImporter::ImportSkinnedMesh when disabling "Strip Bones" on a specific FBX model
- WebGL Development builds ignore the "Compression Format" setting when using "Gzip" compression
- [tvOS] Project crashes on startup on Apple TV simulator (both X86_64 and ARM64 architectures)
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