Search Issue Tracker
Won't Fix
Votes
0
Found in
2020.3.38f1
2021.3.9f1
2022.1.15f1
2022.2.0b7
2023.1.0a10
Issue ID
UUM-13290
Regression
No
Shader error is shown when using a custom shader
Reproduction steps:
1. Open the attached “IN-14498” project
2. Observe Console Window logs
Expected result: No shader error is shown in Console Window
Actual result: Shader error is shown in Console Window
Reproducible with: 2020.3.38f1, 2021.3.9f1, 2022.1.15f1, 2022.2.0b7, 2023.1.0a10
Reproducible on: Windows 10 Pro 21H2
Note: Shader error in 'NewSurfaceShader': Parse error: syntax error, unexpected TVAL_RGBAFLAGS, expecting TOK_SETTEXTURE or '}'
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
- Build fails with compiler errors when switching scripts GUIDs
- Many references for Animator elements redirect to missing pages
- User gets "EndLayoutGroup: BeginLayoutGroup must be called first." error during Xcode selection canceling
- "Unable to use a named GUIStyle without a current skin" error appears in the Console when entering the Play Mode in a project with specific layout
- [D3D12][XR] SRP Foveation foveated rendering on Windows platform not working when Graphics API is set to D3D12
Resolution Note:
We can only fix this when we rewrite the ShaderLab parser.
That said, it looks like you can work around the issue by setting the color mask for all render targets first and overriding for all others after that, e.g.
ColorMask [_ColorMask0]
ColorMask [_ColorMask1] 1