Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't cull ui nodes that have a rotation (bevyengine#5389)
# Objective - Fixes bevyengine#5293 - UI nodes with a rotation that made the top left corner lower than the top right corner (z rotations greater than π/4) were culled ## Solution - Do not cull nodes with a rotation, but don't do proper culling in this case As a reminder, changing rotation and scale of UI nodes is not recommended as it won't impact layout. This is a quick fix but doesn't handle properly rotations and scale in clipping/culling. This would need a lot more work as mentioned here: https://github.com/bevyengine/bevy/blob/c2b332f98a0bcab7390e4b184099202cfb4fbbe1/crates/bevy_ui/src/render/mod.rs#L404-L405
- Loading branch information