bevy/crates/bevy_ui/src
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
..
experimental Switch ChildOf back to tuple struct (#18672) 2025-04-02 00:10:10 +00:00
layout UI Node Gradients (#18139) 2025-05-20 14:45:22 +00:00
render Split Camera.hdr out into a new component (#18873) 2025-05-26 19:24:45 +00:00
widget viewport_node example: Remove main world image initialization (#19098) 2025-05-26 17:20:29 +00:00
accessibility.rs Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
focus.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
geometry.rs UI Node Gradients (#18139) 2025-05-20 14:45:22 +00:00
gradients.rs UI Node Gradients (#18139) 2025-05-20 14:45:22 +00:00
lib.rs Register some types (#19361) 2025-05-26 02:30:07 +00:00
measurement.rs Use CosmicFontSystem in public bevy_text APIs and remove cosmic_text re-export (#16063) 2024-10-23 20:05:28 +00:00
picking_backend.rs Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
stack.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
ui_material.rs Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
ui_node.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
update.rs Switch ChildOf back to tuple struct (#18672) 2025-04-02 00:10:10 +00:00