Skip to content

Commit

Permalink
Fix dim emissive values in lighting example (#12343)
Browse files Browse the repository at this point in the history
# Objective

- Fixes #12330 

## Solution

- Increasing the emissive of the objects representing the lights.
  • Loading branch information
andristarr authored Mar 7, 2024
1 parent 118424d commit 432a4f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/3d/lighting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
};
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 432a4f1

Please sign in to comment.