diff --git a/crates/bevy_pbr/src/render/pbr_fragment.wgsl b/crates/bevy_pbr/src/render/pbr_fragment.wgsl index 2918d0ca521dc..a48f8913a17b2 100644 --- a/crates/bevy_pbr/src/render/pbr_fragment.wgsl +++ b/crates/bevy_pbr/src/render/pbr_fragment.wgsl @@ -76,7 +76,7 @@ fn pbr_input_from_standard_material( // let uv_transform = pbr_bindings::material.uv_transform; // let uv_transform = mat3x3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0); let uv_transform = mat3x3( - vec3(pbr_bindings::material.uv_transform[0].xy, 0.0), + vec3(pbr_bindings::material.uv_transform[0].xyz), vec3(pbr_bindings::material.uv_transform[1].xy, 0.0), vec3(pbr_bindings::material.uv_transform[2].xy, 1.0), ); diff --git a/crates/bevy_pbr/src/render/pbr_prepass_functions.wgsl b/crates/bevy_pbr/src/render/pbr_prepass_functions.wgsl index 9c28d259da20d..ec6176fbdf9a9 100644 --- a/crates/bevy_pbr/src/render/pbr_prepass_functions.wgsl +++ b/crates/bevy_pbr/src/render/pbr_prepass_functions.wgsl @@ -21,7 +21,7 @@ fn prepass_alpha_discard(in: VertexOutput) { // let uv_transform = pbr_bindings::material.uv_transform; // let uv_transform = mat3x3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0); let uv_transform = mat3x3( - vec3(pbr_bindings::material.uv_transform[0].xy, 0.0), + vec3(pbr_bindings::material.uv_transform[0].xyz), vec3(pbr_bindings::material.uv_transform[1].xy, 0.0), vec3(pbr_bindings::material.uv_transform[2].xy, 1.0), );