Unity Issue Tracker - ShaderKeywords '_MAIN_LIGHT_SHADOWS' and '_ADDITIONAL_LIGHT_SHADOWS' are always enabled in the Editor
Closed
UUM-9590
ShaderKeywords '_MAIN_LIGHT_SHADOWS' and '_ADDITIONAL_LIGHT_SHADOWS' are always enabled in the Editor
Unity: Universal RP
URP
Won't Fix
2022.2.X
2022.1.X
2021.3.X
2022.2 release is out and we will offset support for tech stream 2022.1.
ShaderKeywords '_MAIN_LIGHT_SHADOWS' and '_ADDITIONAL_LIGHT_SHADOWS' are enabled in the Editor when the 'Main Light' and 'Additional Lights' are disabled in the Universal Render Pipeline Asset
Reproduction steps:
1. Open the attached 'URP_EditorKeywordBug' project
2. Open the 'SampleScene'
3. Go to the 'Window -> Analysis -> Frame Debugger' and toggle the 'Enable' button on
4. Select the 'Draw Opaque Objects' draw call
Expected result: '_MAIN_LIGHT_SHADOWS' and '_ADDITIONAL_LIGHT_SHADOWS' ShaderKeywords are disabled
Actual result: ShaderKeywords '_MAIN_LIGHT_SHADOWS' and '_ADDITIONAL_LIGHT_SHADOWS' are present
Reproducible with: 12.1.6 (2021.3.2f1), 13.1.8 (2022.1.1f1), 14.0.2 (2022.2.0a12)
Could not test with: 2019.4.39f1, 2020.3.34f1 (no 'Draw Opaque Objects' draw call)
Note:
Issue is not reproducible in builds
Prioritise and Follow this issue
Have a workaround or additional info about this issue?