Search Issue Tracker
Duplicate
Votes
0
Found in
2021.3.46f1
2022.3.54f1
6000.0.30f1
6000.1.0a7
Issue ID
UUM-90241
Regression
No
“'UnityMetaVertexPosition': implicit truncation of vector type" Shader warning when compilating URP ShaderGraph shaders
Reproduction steps:
1. Open the attached “BugShaderWarnings.zip” project
2. Open the “SampleScene”
3. Open the “WarningShaderGraph.shadergraph” from the Project Window
4. Open the Lighting Window (Window > Rendering > Lighting)
5. Click “Generate Lighting”
6. Observe the Inspector Window for the “WarningShaderGraph.shadergraph”
Expected result: No warnings are visible
Actual result: “'UnityMetaVertexPosition': implicit truncation of vector type” warning is visible
Reproducible with: 2021.3.46f1, 2022.3.54f1, 6000.0.30f1, 6000.1.0a7
Reproducible on: Windows 11
Not reproducible on: no other environment tested
Note:
- Warning appears due to ShaderGraph generating float4 uv coordinates in the Attributes struct, but the function ‘UnityMetaVertexPosition’ takes a float2 uv
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
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
Resolution Note:
null
Duplicate of another internal issue: UUM-84269: Shader warnings on build in VR Multiplayer Template