bevy/crates/bevy_render
Kanabenki 58ee3e8908
Calculate AABBs to enable text2d culling (#11663)
# Objective

- Cull 2D text outside the view frustum.
- Part of #11081.

## Solution

- Compute AABBs for entities with a `Text2DBundle` to enable culling
them.


`text2d` example with AABB gizmos on the text entities:


https://github.com/bevyengine/bevy/assets/18357657/52ed3ddc-2274-4480-835b-a7cf23338931


---

## Changelog

### Added

- 2D text outside the view are now culled with the
`calculate_bounds_text2d` system adding the necessary AABBs.
2024-02-29 16:14:31 +00:00
..
macros Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
src Calculate AABBs to enable text2d culling (#11663) 2024-02-29 16:14:31 +00:00
Cargo.toml Made bevy_color a dependency of bevy_render (#12105) 2024-02-25 22:35:00 +00:00