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
- Prefab's scripts are constantly reloaded when trying to enter multiple digits or characters into public fields on custom scripts consecutively
- [Linux] Progress modal window stays on top of every other window and cannot be moved
- Crash on mono_g_hash_table_find_slot when entering Play Mode
- [iOS] Crash when pressing "Done" on the keyboard layout
- Sprite Atlas remains loaded in memory after scene change or unloading assets
Resolution Note (fix version 13.1.1):
Fixed in: 2022.1.0a16