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
- [Android] [GameActivity] UI is unresponsive when Application Entry Point is set to GameActivity
- [Linux] VR template "Tutorial Player" GameObject becomes blank after entering Play mode
- Editor window minimizes when changing the Layout while using the Windows split-screen function
- Object pools do not reset when re-entering the Play Mode with reload domain disabled
- Performance issue when using Shadow-Casting Lights with Batch Renderer Groups
Resolution Note (fix version 13.1.1):
Fixed in: 2022.1.0a16