Search Issue Tracker
By Design
Votes
0
Found in
2021.3.39f1
2022.3.32f1
6000.0.5f1
Issue ID
UUM-73175
Regression
No
[URP] Spot light produces shadow artifacts
Steps to reproduce:
- Create a new Universal 3D template project
- Add a plane and a cube to the scene
- Disable directional light
- Add Spot Light
- Enable shadows on the light
- Rotate/move around the light and observe the shadow of the cube
\\
Actual results: seems like top of the cube shadow is sepparated and shadows are not synced with the rest of the cube
Expected results: shadows are rendered without artifacts
\\
Reproducible with versions:
2021.3.39f1 2022.3.32f1 6000.0.5f1
\\
Tested on (OS):
macOS Intel
Windows 11
\\
Notes:
- Seems to work as expected in HDRP template
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:
Hi, thank you for the report.
You will need to change your light settings to get better results. You can set the resolution of you shadow texture to "Custom" (Shadows -> Realtime Shadows -> Resolution), and select a higher value for your spot light, at the cost of performance. Try f.ex. 2048 instead.
In addition, you can set the bias to "Custom" as well (Shadows -> Realtime Shadows -> Bias), and fiddle around with the Depth & Normal bias. I suggest try setting the Normal bias to 0.
Hope this resolves your issue.