![]() # Objective `calculate_bounds_text2d` generates `Aabb`s with the wrong size and position for `Text2d` entities with `TextBounds`, which breaks culling. ## Solution Calculate the correct bounds. Fixes #20145 ## Testing ``` cargo run --example testbed_2d ``` #### main <img width="661" height="469" alt="text2daabb" src="https://github.com/user-attachments/assets/c10b64ed-6e0d-4c4e-a81d-6ae2248d752a" /> #### This PR <img width="441" height="308" alt="fixed-text2d-aabbs" src="https://github.com/user-attachments/assets/bc715bf0-b77f-4149-9c6d-a5a8c1982780" /> |
||
---|---|---|
.. | ||
2d.rs | ||
3d.rs | ||
full_ui.rs | ||
helpers.rs | ||
ui.rs |