Search Issue Tracker

Active

Votes

0

Found in

2022.3.59f1

6000.0.41f1

6000.1.0b10

6000.2.0a6

Issue ID

UUM-99845

Regression

No

Incorrect Shader keyword activation for Shadows when no Light is present in URP

-

Reproduction steps:
1. Open the attached “IN-97004.zip” project
2. Open the “SampleScene”
3. Select the “Directional Light” GameObject from the Hierarchy
4. Enable the Light Component in the Inspector
5. Observe that the shaders are correctly displayed in the Scene
6. Disable the Light Component
7. Observe the Scene

Expected result: All the shaders are correctly displayed (all shadow-related keywords are disabled or both enabled)
Actual result: Pink shader is visible in the Scene view due to Unity enabling _MAIN_LIGHT_SHADOWS but disabling _SHADOWS_SOFT and causing shader errors

Reproducible with: 2022.3.59f1, 6000.0.41f1, 6000.1.0b10, 6000.2.0a6

Reproducible on: Windows 11
Not reproducible on: no other environment tested

Notes:
- Selecting the “RPAsset.asset” under Assets/Settings/RPAssets and disabling “Cast Shadow” also resolves the pink shader
- This causes issues when using custom shaders that depend on both shadow-related keywords being either both enabled or both disabled

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.