From 432a4f1d852421d432bc8fb84816712dac8c1756 Mon Sep 17 00:00:00 2001 From: andristarr Date: Thu, 7 Mar 2024 23:12:57 +0100 Subject: [PATCH] Fix dim emissive values in `lighting` example (#12343) # Objective - Fixes #12330 ## Solution - Increasing the emissive of the objects representing the lights. --- examples/3d/lighting.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/3d/lighting.rs b/examples/3d/lighting.rs index 59aadd61dbfc8..4f54eb9b1416d 100644 --- a/examples/3d/lighting.rs +++ b/examples/3d/lighting.rs @@ -5,7 +5,7 @@ use std::f32::consts::PI; use bevy::{ color::palettes::css::*, - pbr::{light_consts, CascadeShadowConfigBuilder}, + pbr::CascadeShadowConfigBuilder, prelude::*, render::camera::{Exposure, PhysicalCameraParameters}, }; @@ -145,7 +145,7 @@ fn setup( mesh: meshes.add(Sphere::new(0.1).mesh().uv(32, 18)), material: materials.add(StandardMaterial { base_color: RED.into(), - emissive: Color::linear_rgba(7.13, 0.0, 0.0, 0.0), + emissive: Color::linear_rgba(713.0, 0.0, 0.0, 0.0), ..default() }), ..default() @@ -173,7 +173,7 @@ fn setup( mesh: meshes.add(Capsule3d::new(0.1, 0.125)), material: materials.add(StandardMaterial { base_color: LIME.into(), - emissive: Color::linear_rgba(0.0, 7.13, 0.0, 0.0), + emissive: Color::linear_rgba(0.0, 713.0, 0.0, 0.0), ..default() }), ..default() @@ -198,7 +198,7 @@ fn setup( mesh: meshes.add(Sphere::new(0.1).mesh().uv(32, 18)), material: materials.add(StandardMaterial { base_color: BLUE.into(), - emissive: Color::linear_rgba(0.0, 0.0, 7.13, 0.0), + emissive: Color::linear_rgba(0.0, 0.0, 713.0, 0.0), ..default() }), ..default()