bevy/crates/bevy_pbr/src
akimakinai 4ac528a579
Despawn unused light-view entity (#15902)
# Objective

- Fixes #15897

## Solution

- Despawn light view entities when they go unused or when the
corresponding view is not alive.

## Testing

- `scene_viewer` example no longer prints "The preprocessing index
buffer wasn't present" warning
- modified an example to try toggling shadows for all kinds of light:
https://gist.github.com/akimakinai/ddb0357191f5052b654370699d2314cf
2024-10-15 13:54:09 +00:00
..
cluster Implement WorldQuery for MainWorld and RenderWorld components (#15745) 2024-10-13 20:58:46 +00:00
deferred Fix deferred rendering (#15656) 2024-10-04 22:51:23 +00:00
light Synchronize removed components with the render world (#15582) 2024-10-08 22:23:17 +00:00
light_probe Implement WorldQuery for MainWorld and RenderWorld components (#15745) 2024-10-13 20:58:46 +00:00
lightmap Type safe retained render world (#15756) 2024-10-10 18:47:04 +00:00
meshlet Type safe retained render world (#15756) 2024-10-10 18:47:04 +00:00
prepass Implement WorldQuery for MainWorld and RenderWorld components (#15745) 2024-10-13 20:58:46 +00:00
render Despawn unused light-view entity (#15902) 2024-10-15 13:54:09 +00:00
ssao Fix *most* clippy lints (#15906) 2024-10-14 20:52:35 +00:00
ssr Migrate reflection probes to required components (#15737) 2024-10-08 23:59:27 +00:00
volumetric_fog Implement WorldQuery for MainWorld and RenderWorld components (#15745) 2024-10-13 20:58:46 +00:00
bundle.rs Type safe retained render world (#15756) 2024-10-10 18:47:04 +00:00
extended_material.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
lib.rs Rename App/World::observe to add_observer, EntityWorldMut::observe_entity to observe. (#15754) 2024-10-09 15:39:29 +00:00
material.rs Type safe retained render world (#15756) 2024-10-10 18:47:04 +00:00
mesh_material.rs Remove thiserror from bevy_pbr (#15767) 2024-10-09 14:25:16 +00:00
parallax.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
pbr_material.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
wireframe.rs Revert "Have EntityCommands methods consume self for easier chaining" (#15523) 2024-10-02 12:47:26 +00:00