Search Issue Tracker
Won't Fix
Won't Fix in 2022.2.X
Votes
2
Found in
2022.2.11f1
Issue ID
UUM-30336
Regression
No
Shadow cast causes graphical artefacts in the Player when cascading is enabled
How to reproduce:
1. Open the project “IN_30654”
2. Press File → Build And Run
3. Observe the shadow on the tent
Expected result: shadows cast without issues
Actual result: shadows cast cause graphical artefacts
Reproducible with: 2022.2.11f1
Couldn't test with: 2020.3.46f1, 2021.3.20f1, 2023.1.0b8, 2023.2.0a6 (due to compiler errors)
Reproducible on: Windows 10 Pro
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:
For this case it's not an issue in URP but in the custom shader "Dreamscape_Surface.shader" in the project. The keywords for Main Light Shadows need to be declared together so only one can be selected in each draw call.
Like so:
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE
In that shader _MAIN_LIGHT_SHADOWS and _MAIN_LIGHT_SHADOWS_CASCADE are declared separately so it's possible for both keywords to be enabled at the same time. This made the REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR define to be declared and is the reason for the issue happening in this case.
Resolution Note (2022.2.X):
For this case it's not an issue in URP but in the custom shader "Dreamscape_Surface.shader" in the project. The keywords for Main Light Shadows need to be declared together so only one can be selected in each draw call.
Like so:
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE
In that shader _MAIN_LIGHT_SHADOWS and _MAIN_LIGHT_SHADOWS_CASCADE are declared separately so it's possible for both keywords to be enabled at the same time. This made the REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR define to be declared and is the reason for the issue happening in this case.