Skip to content

Commit

Permalink
UI: pass the untransformed node size to the shader (#12839)
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
mockersf authored Apr 26, 2024
1 parent 92928f1 commit 75f1c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});
}

Expand Down

0 comments on commit 75f1c5d

Please sign in to comment.