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
- Popup windows spawn on the incorrect monitor when the Editor is placed near the boundary of scaled monitor next to a monitor with different scaling
- Hidden Tabs do not shift into empty space after closing visible Tabs
- [Android] Application not deployed on a device when "activity-alias" is used in the AndroidManifest
- Shader compile process adds shader ID to the constant buffer name when the word "Globals" is being used in Vulkan
- Audio Mixer Snapshot link to the documentation isn’t working
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.