diff --git a/crates/bevy_pbr/src/render/pbr_fragment.wgsl b/crates/bevy_pbr/src/render/pbr_fragment.wgsl index 29dc6f52474bb..f6224cbf8481e 100644 --- a/crates/bevy_pbr/src/render/pbr_fragment.wgsl +++ b/crates/bevy_pbr/src/render/pbr_fragment.wgsl @@ -78,7 +78,7 @@ fn pbr_input_from_standard_material( let uv_transform = mat3x3( vec3(pbr_bindings::material.uv_transform[0].xyz), vec3(pbr_bindings::material.uv_transform[1].xyz), - vec3(pbr_bindings::material.uv_transform[2].xy, 1.0), + vec3(pbr_bindings::material.uv_transform[2].xyz), ); var uv = (uv_transform * vec3(in.uv, 1.0)).xy; diff --git a/crates/bevy_pbr/src/render/pbr_prepass_functions.wgsl b/crates/bevy_pbr/src/render/pbr_prepass_functions.wgsl index a9439efeabc9e..22891d361b2c7 100644 --- a/crates/bevy_pbr/src/render/pbr_prepass_functions.wgsl +++ b/crates/bevy_pbr/src/render/pbr_prepass_functions.wgsl @@ -23,7 +23,7 @@ fn prepass_alpha_discard(in: VertexOutput) { let uv_transform = mat3x3( vec3(pbr_bindings::material.uv_transform[0].xyz), vec3(pbr_bindings::material.uv_transform[1].xyz), - vec3(pbr_bindings::material.uv_transform[2].xy, 1.0), + vec3(pbr_bindings::material.uv_transform[2].xyz), ); let uv = (uv_transform * vec3(in.uv, 1.0)).xy; if (pbr_bindings::material.flags & pbr_types::STANDARD_MATERIAL_FLAGS_BASE_COLOR_TEXTURE_BIT) != 0u {