Search Issue Tracker
Active
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Color property '_BaseColor' missing
- Point Light source stops lighting when moved out of camera frustum in Player while having 2 directional lights in scene present, and a fog enabled by script
- Sky does not get rendered when 'CameraRelativeRendering' is disabled
- Dropdown UI elements have their Content misplaced when nested inside a Prefab containing a root object with a Canvas Component
- “'UnityMetaVertexPosition': implicit truncation of vector type" Shader warning when compilating URP ShaderGraph shaders
Add comment