bevy/examples/testbed
Emerson Coskey 7ab00ca185
Split Camera.hdr out into a new component (#18873)
# Objective

- Simplify `Camera` initialization
- allow effects to require HDR

## Solution

- Split out `Camera.hdr` into a marker `Hdr` component

## Testing

- ran `bloom_3d` example

---

## Showcase

```rs
// before
commands.spawn((
  Camera3d
  Camera {
    hdr: true
    ..Default::default()
  }
))

// after
commands.spawn((Camera3d, Hdr));

// other rendering components can require that the camera enables hdr!
// currently implemented for Bloom, AutoExposure, and Atmosphere.
#[require(Hdr)]
pub struct Bloom;
```
2025-05-26 19:24:45 +00:00
..
2d.rs Split Camera.hdr out into a new component (#18873) 2025-05-26 19:24:45 +00:00
3d.rs Split Camera.hdr out into a new component (#18873) 2025-05-26 19:24:45 +00:00
full_ui.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
helpers.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
ui.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00