Search Issue Tracker

Fixed

Votes

0

Found in [Package]

14.0.0

Issue ID

1400736

Regression

No

"redefinition of '_Time'" error appears when using custom Node with an HLSL file in Shader Sub Graph

Package: Shader Graph

-

How to reproduce:
1. Open user attached project
2. Open "CameraDistanceCurve" Shader Sub Graph (Assets > Shaders > SubGraphs > CameraDistanceCurve.shadersubgraph)
3. Observe the "GetCurvedVertexPositionInputs" Node

Expected result: "redefinition of '_Time'" error appears
Actual result: No error

Reproducible with: 10.8.1 (2020.3.29f1), 12.1.4 (2021.2.12f1), 13.1.5 (2022.1.0b7), 14.0.0 (2022.2.0a5)
Could not test with: 7.7.1 (2019.4.35f1) (Errors after downgrade)

Note: In some Shader Graph versions error was "redefinition of '_Time' at line 40"

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.