Search Issue Tracker
By Design
Votes
2
Found in [Package]
preview-1.1.1, 7.1.6
Issue ID
1199400
Regression
No
Main Preview in Shader Graph appears different from Material in Game View when using PBR Shader Graph "Scene Depth" Node
How to reproduce:
1. Open the attached project's "case_1199400-Project.zip" Scene labeled "SampleScene"
2. Open the "New Shader Graph" in Assets folder from the Project Window
3. Inspect the Main Preview in Shader Graph
4. Inspect the Game View
Expected result: Material in Game View and Shader Graph Main Preview look the same
Actual result: Material differs in Game View and Shader Graph Main Preview
Reproducible with: 2018.4.13f1 (preview-.1.1.1, 4.1.0), 2019.2.15f1 (6.9.0, 6.9.2), 2019.3.0f1, 2020.1.0a15 (7.1.1, 7.1.6)
Couldn't test with: 2017.4.35f1 (Package Manager does not exist)
Note: GameObject with PBR Shader Graph Material which has Scene Depth Node connected to Master Node's Alpha channel is rendered behind everything else
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
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
- "Assertion failed on expression" error occurs when multiple Animation Components are instantiated after changing the Culling Type
- MacOS persistentDataPath uses old path when built compared to Editor Play mode
- Crash on RaiseException when entering Play Mode in a specific project
- Debug Console does not reappear when disabling and re-enabling Debug.developerConsoleEnabled
Resolution Note:
There is no idea of any scene data in the preview window - the current scene depth is drawn to show that the node is in fact doing something, but it is not expected to match the game view directly. We would like to have better messaging in the future that scene data cant be reflected in the ShaderGraph previews, but works as expected for now.