bevy/crates/bevy_sprite/src
Patrick Walton 8577a448f7
Fix rendering of sprites, text, and meshlets after #12582. (#12945)
`Sprite`, `Text`, and `Handle<MeshletMesh>` were types of renderable
entities that the new segregated visible entity system didn't handle, so
they didn't appear.

Because `bevy_text` depends on `bevy_sprite`, and the visibility
computation of text happens in the latter crate, I had to introduce a
new marker component, `SpriteSource`. `SpriteSource` marks entities that
aren't themselves sprites but become sprites during rendering. I added
this component to `Text2dBundle`. Unfortunately, this is technically a
breaking change, although I suspect it won't break anybody in practice
except perhaps editors.

Fixes #12935.

## Changelog

### Changed

* `Text2dBundle` now includes a new marker component, `SpriteSource`.
Bevy uses this internally to optimize visibility calculation.

## Migration Guide

* `Text` now requires a `SpriteSource` marker component in order to
appear. This component has been added to `Text2dBundle`.
2024-04-13 14:15:00 +00:00
..
mesh2d Fix rendering of sprites, text, and meshlets after #12582. (#12945) 2024-04-13 14:15:00 +00:00
render Fix rendering of sprites, text, and meshlets after #12582. (#12945) 2024-04-13 14:15:00 +00:00
texture_slice Slicing support for texture atlas (#12059) 2024-03-05 16:05:39 +00:00
bundle.rs Fix docs for atlas + slicing support (#12325) 2024-03-05 18:04:22 +00:00
dynamic_texture_atlas_builder.rs Consolidate Render(Ui)Materials(2d) into RenderAssets (#12827) 2024-04-09 13:26:34 +00:00
lib.rs Fix rendering of sprites, text, and meshlets after #12582. (#12945) 2024-04-13 14:15:00 +00:00
sprite.rs Slicing support for texture atlas (#12059) 2024-03-05 16:05:39 +00:00
texture_atlas_builder.rs Deprecate SpriteSheetBundle and AtlasImageBundle (#12218) 2024-03-03 20:11:15 +00:00
texture_atlas.rs Prefer UVec2 when working with texture dimensions (#11698) 2024-02-25 15:23:04 +00:00