bevy/crates/bevy_pbr/src/meshlet
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
..
asset.rs
copy_material_depth.wgsl
cull_meshlets.wgsl
downsample_depth.wgsl
dummy_visibility_buffer_resolve.wgsl
from_mesh.rs
gpu_scene.rs Relax BufferVec's type constraints (#12866) 2024-04-05 02:11:41 +00:00
material_draw_nodes.rs Add previous_view_uniforms.inverse_view (#12902) 2024-04-07 18:59:16 +00:00
material_draw_prepare.rs Implement percentage-closer filtering (PCF) for point lights. (#12910) 2024-04-10 20:16:08 +00:00
meshlet_bindings.wgsl
meshlet_mesh_material.wgsl
meshlet_preview.png
mod.rs Fix rendering of sprites, text, and meshlets after #12582. (#12945) 2024-04-13 14:15:00 +00:00
persistent_buffer_impls.rs Make PersistentGpuBufferable a safe trait (#12744) 2024-03-29 13:14:34 +00:00
persistent_buffer.rs Make PersistentGpuBufferable a safe trait (#12744) 2024-03-29 13:14:34 +00:00
pipelines.rs
visibility_buffer_raster_node.rs
visibility_buffer_raster.wgsl
visibility_buffer_resolve.wgsl Add previous_view_uniforms.inverse_view (#12902) 2024-04-07 18:59:16 +00:00
write_index_buffer.wgsl