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
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)
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
- UI Builder Hierarchy files are not marked dirty when Inspector fields in Attributes category are changed
- SVG file icons do not use the default asset icon when Vector Graphics package is not installed
- UnmanagedReadOrWrite objects are not disposed off when GZipStream is used in the "using" statement
- Android build fails when StreamingAssets contains 998 or more files
- "Playmode tint" is applied to Color and Gradient fields when in Play mode
Resolution Note (fix version 2022.2):
Fixed in: 14.0.3 (2022.2.0a15)