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

Package: Scriptable Render Pipeline Universal

-

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


  1. 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.

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.