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:
François Mockers 2024-04-27 01:50:04 +02:00 committed by GitHub
parent 92928f13ed
commit 75f1c5df7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(),
});
}