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
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
- "Assertion failed on expression" error occurs when multiple Animation Components are instantiated after changing the Culling Type
- MacOS persistentDataPath uses old path when built compared to Editor Play mode
- Crash on RaiseException when entering Play Mode in a specific project
- Debug Console does not reappear when disabling and re-enabling Debug.developerConsoleEnabled
Resolution Note:
Duplicate of another internal issue: UUM-84269: Shader warnings on build in VR Multiplayer Template