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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.