# 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;
```
|
||
|---|---|---|
| .. | ||
| animated_mesh_control.rs | ||
| animated_mesh_events.rs | ||
| animated_mesh.rs | ||
| animated_transform.rs | ||
| animated_ui.rs | ||
| animation_events.rs | ||
| animation_graph.rs | ||
| animation_masks.rs | ||
| color_animation.rs | ||
| custom_skinned_mesh.rs | ||
| eased_motion.rs | ||
| easing_functions.rs | ||
| gltf_skinned_mesh.rs | ||
| morph_targets.rs | ||