From ccf9731f2a14df99d464e1b0378ac7da82d19461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Wed, 28 Feb 2024 22:46:12 +0100 Subject: [PATCH] 0 -> xyz --- crates/bevy_pbr/src/render/pbr_fragment.wgsl | 2 +- crates/bevy_pbr/src/render/pbr_prepass_functions.wgsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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), );