Search Issue Tracker
By Design
Votes
0
Found in [Package]
12.1.1
Issue ID
1384392
Regression
Yes
Material that uses a Simple Lit shader is rendered in pink texture when viewed in Player
How to reproduce:
1. Open the attached project "PinkMaterialBug.zip"
2. Open "Scene" Scene
3. Build & Run the project (File > Build And Run)
Expected result: The Sphere object is displayed in the original (yellow) texture
Actual result: The Sphere object is displayed in a pink texture
Reproducible with: 12.1.1 (2021.2.2f1), 12.1.2 (2021.2.6f1), 13.1.3 (2022.1.0b2)
Not reproducible with: 7.7.1 (2019.4.33f1), 10.7.0 (2020.3.24f1), 12.1.0 (2021.2.1f1)
Notes:
- Not reproducible in Play mode
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
- Blank, Light-Themed "Create Node" window becomes visible on the next project open
- UI Elements/Layout inconsistencies in the Particle System component
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
Resolution Note:
This is by design, because custom shader uses our URP keyword _ADDITIONAL_LIGHT_SHADOWS and we do not support it without using _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHTS. As result our shader stripper removes it as invalid variant. Simply add #pragma multi_compile _ _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHTS.