From 75f1c5df7d90f88c7ac805537d9a5846ed532127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Sat, 27 Apr 2024 01:50:04 +0200 Subject: [PATCH] UI: pass the untransformed node size to the shader (#12839) # Objective - #12500 broke rotating ui nodes, see examples `pbr` (missing "metallic" label) or `overflow_debug` (bottom right box is empty) ## Solution - Pass the untransformed node size to the shader --- crates/bevy_ui/src/render/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/render/mod.rs b/crates/bevy_ui/src/render/mod.rs index c03b90004b..d4c27a2141 100644 --- a/crates/bevy_ui/src/render/mod.rs +++ b/crates/bevy_ui/src/render/mod.rs @@ -1142,7 +1142,7 @@ pub fn prepare_uinodes( flags: flags | shader_flags::CORNERS[i], radius: extracted_uinode.border_radius, border: extracted_uinode.border, - size: transformed_rect_size.xy().into(), + size: rect_size.xy().into(), }); }