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
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
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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Resolution Note (fix version 13.1.1):
Fixed in: 2022.1.0a16