Search Issue Tracker

Fixed in 5.14.0

Votes

0

Found in [Package]

5.3.1

Issue ID

1136856

Regression

No

[ShaderGraph] Scene Depth and Scene Color nodes don't work when used in a Sub Graph

Package: Shader Graph

-

Reproduced in SRP master of 4/12/19, 2019.3.0a1

New repro steps:

- Create graph
- Create scene color node
- Connect scene color node to albedo of unlit master output
Notice the output is correct.
- Create Add node
- Attach to input UV of scene color
Notice the output picks 1 pixel of the scene color target (still correct)
- Remove the Add node
- Convert Scene Color to Subgraph
Notice the output is still correct (because of your original fix)
- Now repeat the process of creating an Add node, but this time do it in the subgraph, and connect it to the input UV of the Scene Color node again
Notice the output has gone black (even though there is no black pixel on the scene color target) This is wrong.
- Now delete the Add node, which should revert the sub-graph to only outputting the default scene color
Notice the shader output is still black and at this point is unfixable. The sub-graph is busted.

Old Repro Steps:

- In the attached zip file, there is a shader and a sub-graph
- To reproduce, switch the connection in the graph between the Sceen Depth node, and the Subgraph that contains a Scene Depth Node
- Notice that when using the Subgraph node, the effect breaks

  1. Resolution Note (fix version 5.14.0):

    For 2019.1, projected to be fixed in package version 5.14 and higher. For 2019.2 and 2019.3, projected to land in respective package version x.7 and higher.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.