Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3
2021.2
2021.2.4f1
2022.1
2022.2
Issue ID
1387749
Regression
No
Shaders with Fallback defined are rendered pink when used with CommandBuffer
How to reproduce:
1. Open the user's attached project "CommandBuffer_bug.zip"
2. Open the "Bug" Scene in "_GAME_" > "Scenes"
3. In the Hierarchy window select the "Sprite" Object
4. In its Inspector window in Component "Bug (Script)" change Material to "Shader Graph material"
5. Press Play
Expected result: Object is rendered with the selected ShaderGraph material
Actual result: Object is displayed as a pink square
Reproducible with: 2019.4.35f1, 2020.3.27f1, 2021.2.10f1, 2022.1.0b6, 2022.2.0a3
Notes:
- Any Shader that has Fallback defined with CommandBuffer uses this Fallback Shader instead of what was created/written
- Disabling (Fallback Off) or removing Fallback from the Shader code renders the Object correctly
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
- Texture displays visual artifacts and has a broken aspect ratio when it is imported in RGB 48-bit format
- Diagnostic Warning Resets When Navigating Away and Returning to Diagnostics Settings
- Checkbox Collides with Text in Shader Graph Preferences Settings
- Crash on mecanim::animation::TransformValuesFromClip when entering the Play Mode in a project with Animancer Pro v8
- Connection to Named Pipes fails when server and client are run
Resolution Note (2022.2.X):
Thanks for your freedback. Unfortunately, ShaderGraph currently does not support CommandBuffers. Any success anyone may have had with them in the past is a bit of a coincidence. You could peruse our product board and request the feature more explicitly here; https://portal.productboard.com/unity/1-unity-platform-rendering-visual-effects/tabs/7-shader-graph.