bevy/examples/math
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
..
bounding_2d.rs Move bounding_2d example to math folder (#17523) 2025-01-28 05:29:05 +00:00
cubic_splines.rs
custom_primitives.rs Fix non-crate typos (#18219) 2025-03-11 06:17:48 +00:00
random_sampling.rs Allow clippy::too_many_arguments to lint without warnings (#17249) 2025-01-09 07:26:15 +00:00
render_primitives.rs Update render_primitives example for children! macro (#18268) 2025-03-12 04:49:07 +00:00
sampling_primitives.rs Split Camera.hdr out into a new component (#18873) 2025-05-26 19:24:45 +00:00