Search Issue Tracker

Fixed in 2022.2.X

Votes

0

Found in

2019.4

2020.3

2021.2

2021.2.11f1

2022.1

2022.2

Issue ID

1408016

Regression

No

[HDRP] Shader Graph generated code includes unused Interpolators when using certain Shader Graph target and pass configurations

HD RP

-

How to reproduce:
1. Open the user-submitted project
2. In the Project window, select the Asset "FabricShaderGraph" (Assets/FabricShaderGraph.shadergraph)
3. In the Inspector window, click "View Generated Shader"
4. In the generated Shader code, inspect the Interpolators of the DepthForwardOnly pass (line 4396)

Expected result: positionCS, normalWS, tangentWS and instanceID are seen
Actual result: positionCS, positionRWS, normalWS, tangentWS, texCoord1, texCoord2 and instanceID are seen

Reproducible with: 7.7.1 (2019.4.36f1), 10.8.1 (2020.3.30f1), 12.1.5 (2021.2.15f1), 13.1.7 (2022.1.0b11), 14.0.0 (2022.2.0a7)

  1. Resolution Note (fix version 2022.2):

    Fixed in: 14.0.3 (2022.2.0a15)

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.