bevy/crates/bevy_pbr/src
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
..
cluster The Cooler 'Retain Rendering World' (#15320) 2024-09-30 18:51:43 +00:00
deferred Fix deferred rendering (#15656) 2024-10-04 22:51:23 +00:00
light Migrate meshes and materials to required components (#15524) 2024-10-01 21:33:17 +00:00
light_probe The Cooler 'Retain Rendering World' (#15320) 2024-09-30 18:51:43 +00:00
lightmap Migrate meshes and materials to required components (#15524) 2024-10-01 21:33:17 +00:00
meshlet Fix Mesh allocator bug and reduce Mesh data copies by two (#15566) 2024-10-01 17:15:57 +00:00
prepass Revert "Have EntityCommands methods consume self for easier chaining" (#15523) 2024-10-02 12:47:26 +00:00
render Fix deferred rendering (#15656) 2024-10-04 22:51:23 +00:00
ssao Added visibility bitmask as an alternative SSAO method (#13454) 2024-10-02 13:43:35 +00:00
ssr Migrate motion blur, TAA, SSAO, and SSR to required components (#15572) 2024-10-01 22:45:31 +00:00
volumetric_fog Migrate fog volumes to required components (#15568) 2024-10-01 19:51:22 +00:00
bundle.rs Migrate meshes and materials to required components (#15524) 2024-10-01 21:33:17 +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 Fix deferred rendering (#15656) 2024-10-04 22:51:23 +00:00
material.rs Migrate meshes and materials to required components (#15524) 2024-10-01 21:33:17 +00:00
mesh_material.rs Migrate meshes and materials to required components (#15524) 2024-10-01 21:33:17 +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