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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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.