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
- Scene flickers when using Mesh Output with SpriteLit Shader in 2D project
- “Cache Management” text is misaligned in Preferences > Package Manager
- [macOS] network permission shows the name of previously closed app when different app requests network access
- Delta value returned by mouse movementsMonitor is different when changing Screen Resolution
- The Radius Scale option is removed from the Visual Effect Graph Output Particle when Lod is disabled in Particles Options
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.