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
- Highlighter.Highlight does not find window when using class name as window title
- Highlighter.Highlight highlights a different component when multiple components have the same property path
- Highlighter.Highlight does not find elements in an array or list when the array or list is collapsed
- [URP][NRP] RenderPass, BeginSubPass, and EndRenderPass errors are thrown when Native RenderPass is enabled
- D3D11 swapchain error pop-up appears and the Editor shuts down when Generating Lighting with Probe Volumes present
Resolution Note (fix version 13.1.1):
Fixed in: 2022.1.0a16