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
- Undoing Animator Parameter name change breaks references to it
- Crash on BV4_OverlapBoxAll when moving in play mode
- Custom mesh water surface normal map fades out when Y Position increases
- Sprite renderer does not issue draw calls correctly when using SRP Batcher
- [Android] Flickering artifacts when using "ScriptableRenderer.EnqueuePass(RenderPassEvent.BeforeRenderingPostProcessing)" multiple times
Resolution Note:
null
Duplicate of another internal issue: UUM-84269: Shader warnings on build in VR Multiplayer Template