bevy/crates/bevy_pbr/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
..
atmosphere Split Camera.hdr out into a new component (#18873) 2025-05-26 19:24:45 +00:00
cluster Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
decal Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
deferred Use embedded_asset to load PBR shaders (#19137) 2025-05-16 05:47:34 +00:00
light Fix newline in PointLightShadowMap comment (#18791) 2025-04-10 18:05:11 +00:00
light_probe Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
lightmap Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
meshlet Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
prepass Make sure prepass notices changes in alpha mode (#19170) 2025-05-18 06:28:30 +00:00
render Fix spot light shadow glitches (#19273) 2025-05-19 19:42:09 +00:00
ssao Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
ssr Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
volumetric_fog Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
components.rs reexport entity set collections in entity module (#18413) 2025-03-30 03:51:14 +00:00
extended_material.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
fog.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
lib.rs Use embedded_asset to load PBR shaders (#19137) 2025-05-16 05:47:34 +00:00
material_bind_groups.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
material.rs Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
mesh_material.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
parallax.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
pbr_material.rs Use embedded_asset to load PBR shaders (#19137) 2025-05-16 05:47:34 +00:00
wireframe.rs Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00