Search Issue Tracker

Fixed in 13.1.1

Votes

0

Found in [Package]

12.0.0

Issue ID

1361512

Regression

No

[Shader Graph] "'cross': implicit truncation of vector type" errors are thrown when connecting Transform Node to Vertex Block

Package: Shader Graph

-

Steps to reproduce:
1. Create a new URP project
2. In the Project Window, create an Unlit Shader Graph (Create > Shader Graph > URP > Unlit Shader Graph)
3. Open the created shader in Shader Editor by double-clicking it
4. Right-click in the Shader Editor > Create Node > Math > Vector > Transform
5. Connect the Transform Node Out to any Vertex Block
6. Right-click on the created Shader Graph window tab > Close Tab
7. Select the created Shader Graph and preview in the Inspector

Expected result: no errors are displayed in the inspector
Actual result: multiple "'cross': implicit truncation of vector type" errors are shown

Reproducible with: 7.7.1 (2019.4.30f1), 10.5.1 (2020.3.18f1), 11.0.0 (2021.1.21f1), 12.0.0 (2021.2.0b12, 2022.1.0a9)

Notes:
- line in the generated shader that throws an error:
"output.ObjectSpaceBiTangent = normalize(cross(input.normalOS, input.tangentOS) * (input.tangentOS.w > 0.0f ? 1.0f : -1.0f) * GetOddNegativeScale());"
- issue also occurs in HDRP projects in 2019.4, 2020.3 and 2021.1 Streams

  1. Resolution Note (fix version 13.1.1):

    Fixed in: 2022.1.0a16

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.