Unity Issue Tracker - Custom Shader Material is pink when the project is built for the WebGL platform
Closed
UUM-58266
Custom Shader Material is pink when the project is built for the WebGL platform
Unity: WebGL
As Designed
2023.3.X
2023.2.X
2023.2.0a19 onwards
2022.3.X
2022.3.6f1 onwards
By design:
Shader specifies tag "RenderPipeline" = "UniversalRenderPipeline" which is not correct and causes the shader to be not used.
The correct tag should be "RenderPipeline" = "UniversalPipeline"
Reproduction steps:
1. Open the “ReproProject“ project
2. Open the “Assets/Scenes/SampleScene“ scene
3. Enter Play Mode
4. Observe the Game View
5. Build and run the project (File > Build And Run)
6. Observe the Browser window
Expected result: The sphere on the left is red
Actual result: The sphere on the left is pink