From 978a14949db09c2ecae8a48bbe852b3afe98816a Mon Sep 17 00:00:00 2001 From: Tyler Critchlow Date: Sun, 21 Jun 2026 00:42:35 -0600 Subject: [PATCH] Add `EnvironmentMapLight::with_intensity` builder method --- crates/bevy_light/src/probe.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/bevy_light/src/probe.rs b/crates/bevy_light/src/probe.rs index b5ba960c99076..41d9345b4e383 100644 --- a/crates/bevy_light/src/probe.rs +++ b/crates/bevy_light/src/probe.rs @@ -167,6 +167,12 @@ impl EnvironmentMapLight { } } + /// Sets the intensity of this environment map and returns it. + pub fn with_intensity(mut self, intensity: f32) -> Self { + self.intensity = intensity; + self + } + pub(crate) fn hemispherical_gradient_cubemap( top_color: Color, mid_color: Color,