bevy/examples/3d
Joona Aalto 25bfa80e60
Migrate cameras to required components (#15641)
# Objective

Yet another PR for migrating stuff to required components. This time,
cameras!

## Solution

As per the [selected
proposal](https://hackmd.io/tsYID4CGRiWxzsgawzxG_g#Combined-Proposal-1-Selected),
deprecate `Camera2dBundle` and `Camera3dBundle` in favor of `Camera2d`
and `Camera3d`.

Adding a `Camera` without `Camera2d` or `Camera3d` now logs a warning,
as suggested by Cart [on
Discord](https://discord.com/channels/691052431525675048/1264881140007702558/1291506402832945273).
I would personally like cameras to work a bit differently and be split
into a few more components, to avoid some footguns and confusing
semantics, but that is more controversial, and shouldn't block this core
migration.

## Testing

I ran a few 2D and 3D examples, and tried cameras with and without
render graphs.

---

## Migration Guide

`Camera2dBundle` and `Camera3dBundle` have been deprecated in favor of
`Camera2d` and `Camera3d`. Inserting them will now also insert the other
components required by them automatically.
2024-10-05 01:59:52 +00:00
..
3d_scene.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
3d_shapes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
3d_viewport_to_world.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
animated_material.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
anisotropy.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
anti_aliasing.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
atmospheric_fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
auto_exposure.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
blend_modes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
bloom_3d.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
camera_sub_view.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
clearcoat.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
color_grading.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
deferred_rendering.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
depth_of_field.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
fog_volumes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
generate_custom_mesh.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
irradiance_volumes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
lighting.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
lightmaps.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
lines.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
load_gltf.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
load_gltf_extras.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
meshlet.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
motion_blur.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
orthographic.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
parallax_mapping.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
parenting.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
pbr.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
pcss.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
post_processing.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
query_gltf_primitives.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
reflection_probes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
render_to_texture.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
rotate_environment_map.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
scrolling_fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
shadow_biases.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
shadow_caster_receiver.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
skybox.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
spherical_area_lights.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
split_screen.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
spotlight.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
ssao.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
ssr.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
texture.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
tonemapping.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
transmission.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
transparency_3d.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
two_passes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
update_gltf_scene.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
vertex_colors.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
visibility_range.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
volumetric_fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
wireframe.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00