Search Issue Tracker
Won't Fix
Votes
1
Found in
2021.3.42f1
2022.3.41f1
6000.0.14f1
Issue ID
UUM-77731
Regression
No
Shadows are not rendered smoothly when Shadows Cascade Count is set to 3 or 4
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Zoom in and out in the Scene view
4. Observe the shadows
Expected result: Shadows should transition smoothly without visible artifacts
Actual result: Shadows exhibit blocky artifacts and some parts of the shadows get cut off
Reproducible with: 2021.3.42f1, 2022.3.41f1, 6000.0.14f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Comments (1)
-
Phantom_X
Aug 07, 2024 12:56
Important to note that the repro project was using the built-in methods and shader example from the URP documentation.
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
The example shader in the documentation is for Screen Space Shadows, where shadow coordinates are computed at the vertex. For Cascade Shadows, shadow coordinates should be computed in the fragment shader. See LitForwardPass.hlsl in URP for more details. The following file is the modified shader.
https://drive.google.com/file/d/1-0nWJHyhJBwVn9tOZsRHBgKrKSVVfzF4/view?usp=sharing
Also, if the Plane object needs shadow casting, a ShadowCaster pass from Lit.shader can be added to SampleShadows.shader.