bevy/crates/bevy_pbr/src
akimakinai 61350cd36f
Remove components if not extracted (#15948)
# Objective

- Fixes https://github.com/bevyengine/bevy/issues/15871
(Camera is done in #15946)

## Solution

- Do the same as #15904 for other extraction systems
- Added missing `SyncComponentPlugin` for DOF, TAA, and SSAO
(According to the
[documentation](https://dev-docs.bevyengine.org/bevy/render/sync_component/struct.SyncComponentPlugin.html),
this plugin "needs to be added for manual extraction implementations."
We may need to check this is done.)

## Testing

Modified example locally to add toggles if not exist.
- [x] DOF - toggling DOF component and perspective in `depth_of_field`
example
- [x] TAA - toggling `Camera.is_active` and TAA component
- [x] clusters - not entirely sure, toggling `Camera.is_active` in
`many_lights` example (no crash/glitch even without this PR)
- [x] previous_view - toggling `Camera.is_active` in `skybox` (no
crash/glitch even without this PR)
- [x] lights - toggling `Visibility` of `DirectionalLight` in `lighting`
example
- [x] SSAO - toggling `Camera.is_active` and SSAO component in `ssao`
example
- [x] default UI camera view - toggling `Camera.is_active` (nop without
#15946 because UI defaults to some camera even if `DefaultCameraView` is
not there)
- [x] volumetric fog - toggling existence of volumetric light. Looks
like optimization, no change in behavior/visuals
2024-10-19 15:13:39 +00:00
..
cluster Remove components if not extracted (#15948) 2024-10-19 15:13:39 +00:00
deferred Fix lightmaps break when deferred rendering is enabled (#14599) 2024-10-18 23:18:11 +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 Remove components if not extracted (#15948) 2024-10-19 15:13:39 +00:00
render Remove components if not extracted (#15948) 2024-10-19 15:13:39 +00:00
ssao Remove components if not extracted (#15948) 2024-10-19 15:13:39 +00:00
ssr Migrate reflection probes to required components (#15737) 2024-10-08 23:59:27 +00:00
volumetric_fog Remove components if not extracted (#15948) 2024-10-19 15:13:39 +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 Remove components if not extracted (#15948) 2024-10-19 15:13:39 +00:00
material.rs Revert default mesh materials (#15930) 2024-10-15 19:47:40 +00:00
mesh_material.rs Revert default mesh materials (#15930) 2024-10-15 19:47:40 +00:00
parallax.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
pbr_material.rs Fix typos from greyscale -> grayscale (#15947) 2024-10-16 12:30:23 +00:00
wireframe.rs Revert "Have EntityCommands methods consume self for easier chaining" (#15523) 2024-10-02 12:47:26 +00:00