Search Issue Tracker
Won't Fix
Won't Fix in 2023.3.X
Votes
2
Found in
2021.3.22f1
2022.2.13f1
2023.1.0b10
2023.2.0a8
2023.3.0a3
Issue ID
UUM-32343
Regression
No
[BiRP SG] "Shader error in 'Master': redefinition of '_SpecColor'" when Specular Color has Reference set to "_SpecColor" and the ShaderGraph uses Built-In Target
Reproduction steps:
1. Open the attached "ASD" Project
2. Open the "Assets/Test Lit Shader Graph.shadergraph" Shader Graph
3. Observe the Console Window
Expected result: No error is thrown
Actual result: "Shader error in 'Master': redefinition of '_SpecColor' at line 294 (on metal)" errors are thrown in the Console Window
Reproducible with: 12.0.0 (2021.2.0b1), 12.1.10 (2021.3.22f1), 14.0.6 (2022.2.13f1), 15.0.4 (2023.1.0b10), 16.0.0 (2023.2.0a8)
Not reproducible with: 10.10.1 (2020.3.46f1)
Could not test with: 11.0.0 (2021.2.0a2 ((Cannot find the code for this Target, a package may be missing.)), Editor versions lower than 2021.2.0b1 (Graph Built-In Target is Unknown)
Reproducible on: Intel MacOS 13.2.1
Note: For reproduction to occur, the Specular Color type Property has to have "Reference" set to "_SpecColor" and be connected to the Fragment Node
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
The built-in render pipeline reserves the uniform "_SpecColor" for use, hence this error. It is not possible to fix this for shader graph without re-writing the pipeline.
Resolution Note (2023.3.X):
The built-in render pipeline reserves the uniform "_SpecColor" for use, hence this error. It is not possible to fix this for shader graph without re-writing the pipeline.