mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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
This commit is contained in:
parent
92928f13ed
commit
75f1c5df7d
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue