Skip to content

Commit 41c9c02

Browse files
lpledouxUnityEvergreen
authored andcommitted
[Port] [2022.3] Fixed two parameters being the wrong type leading to a warning
This is to fix some warnings when using the multiplayer VR template and creating a build. Some shaders generated via shadergraph were doing an implicit truncation of values (specifically the 2 UV sets passed to the UnityMetaVertexPosition function). This has been fixed. Jira: https://jira.unity3d.com/browse/UUM-84269
1 parent ee10cbb commit 41c9c02

File tree

1 file changed

+1
-1
lines changed
  • Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes

1 file changed

+1
-1
lines changed

Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Varyings BuildVaryings(Attributes input)
133133
output.positionCS.z = max(output.positionCS.z, UNITY_NEAR_CLIP_VALUE);
134134
#endif
135135
#elif (SHADERPASS == SHADERPASS_META)
136-
output.positionCS = UnityMetaVertexPosition(input.positionOS, input.uv1, input.uv2, unity_LightmapST, unity_DynamicLightmapST);
136+
output.positionCS = UnityMetaVertexPosition(input.positionOS, input.uv1.xy, input.uv2.xy, unity_LightmapST, unity_DynamicLightmapST);
137137
#else
138138
output.positionCS = TransformWorldToHClip(positionWS);
139139
#endif

0 commit comments

Comments
 (0)