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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.