bevy/examples/camera
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_screen_shake.rs Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +00:00
2d_top_down_camera.rs Split Camera.hdr out into a new component (#18873) 2025-05-26 19:24:45 +00:00
camera_orbit.rs Use en-us locale for typos (#16037) 2024-10-20 18:55:17 +00:00
custom_projection.rs Fix a few subcrate import paths in examples (#19002) 2025-04-30 18:41:17 +00:00
first_person_view_model.rs Update shader_prepass, testbed_2d, and first_person_view_model examples to use children! macro (#18270) 2025-03-22 22:35:20 +00:00
projection_zoom.rs Refactor and simplify custom projections (#17063) 2025-01-01 20:44:24 +00:00