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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
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.