From 186ec668ad72577fa2602e87aa77c0c977c3655c Mon Sep 17 00:00:00 2001 From: robtfm <50659922+robtfm@users.noreply.github.com> Date: Tue, 15 Oct 2024 21:13:41 +0100 Subject: [PATCH] fix plane custom uvs? --- crates/scene_runner/src/update_world/mesh_renderer/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/scene_runner/src/update_world/mesh_renderer/mod.rs b/crates/scene_runner/src/update_world/mesh_renderer/mod.rs index cd6887b7..a0f350cc 100644 --- a/crates/scene_runner/src/update_world/mesh_renderer/mod.rs +++ b/crates/scene_runner/src/update_world/mesh_renderer/mod.rs @@ -198,7 +198,8 @@ pub fn update_mesh( let mut mesh = Rectangle::default() .mesh() .build() - .rotated_by(Quat::from_rotation_z(-FRAC_PI_2)); + .rotated_by(Quat::from_rotation_z(FRAC_PI_2)) + .scaled_by(Vec3::new(1.0, -1.0, -1.0)); let Some(VertexAttributeValues::Float32x2(mesh_uvs)) = mesh.attribute_mut(Mesh::ATTRIBUTE_UV_0) else {