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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
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.