Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.3.21f1
2023.3.0b10
6000.0.0b11
Issue ID
UUM-65869
Regression
Yes
Custom Shadows stay soft when the "Soft Shadows" option is disabled in the "URP Renderer" asset
How to reproduce:
1. Open the “IN_70220” project
2. Open the “AdditionalLightsDemoScene”
3. In the Project window search for the “URP Renderer“ asset and open it
4. In the Inspector disable “Soft Shadows”
5. Observe the Game view
Expected result: Hard shadows rendered
Actual result: Soft shadows rendered
Reproducible with: 2022.3.11f1, 2022.3.21f1, 2023.3.0b10
Not reproducible with: 2021.3.36f1, 2022.3.10f1
Couldn’t test with: 2023.2.13f1 (due to shader error and custom material being pink)
Reproducible on: Windows 10 Pro
Not reproducible on: No other environments tested
Notes:
- Reproducible on both Vulkan and OpenGLES3 Graphics API
- I made some modifications for the user project so the expected result can be seen by toggling the “Button” in the Play Mode
- This issue is not reproducible if the Soft shadows are changed to Hard shadows in the code (I created the variable “private Light shadowCastingLight;“ and changed shadows with this: “shadowCastingLight.shadows = LightShadows.Soft;“).
- Reproducible when Windows Standalone or Android Platforms are selected (no other environment tested)
- Couldn’t test in Windows Standalone and Android Player due to texture becoming pink color
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
- Play on awake does not work with an audio random container when instantiating a game object
- Play on awake does not work with an audio random container when loading a scene
- Prefab components are not rendered correctly in the Inspector Window when "HideFlags.HideInInspector" is used
- The "Editor.CreateInspectorGUI" method is being called twice when the Console and the Inspector windows are in the same panel
- [Linux Editor Only] Unity crashes on strtol_l when importing a specific .obj file
Resolution Note:
The issue is that the Custom Soft Shadow keywords set in the ShaderGraph do not have a variant for when soft shadows are disabled.
Adding another value, at the top, to the keyword enum solves the issue.