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
- Time.deltaTime is locked to the display's refresh rate when the built Player is moved to a Secondary Display and Windowed Mode is used
- Crash on RaiseException when importing a specific asset
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
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.