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
-
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
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
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.