Skip to content

Commit

Permalink
Update lighting as it changed in the last Bevy release to be darker b…
Browse files Browse the repository at this point in the history
…y default
  • Loading branch information
qhdwight committed Feb 25, 2024
1 parent a3e6ec2 commit 71623b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_fps_controller"
version = "0.2.4"
version = "0.2.5"
edition = "2021"
authors = ["bevy_fps_controller"]
repository = "https://github.com/qhdwight/bevy_fps_controller"
Expand Down
21 changes: 11 additions & 10 deletions examples/minimal.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::f32::consts::TAU;

use bevy::{
gltf::Gltf,
gltf::{GltfMesh, GltfNode},
gltf::{Gltf, GltfMesh, GltfNode},
math::Vec3Swizzles,
prelude::*,
render::camera::Exposure,
window::CursorGrabMode,
};
use bevy_rapier3d::prelude::*;
Expand All @@ -17,7 +17,7 @@ fn main() {
App::new()
.insert_resource(AmbientLight {
color: Color::WHITE,
brightness: 0.5,
brightness: 10000.0,
})
.insert_resource(ClearColor(Color::hex("D4F5F5").unwrap()))
.insert_resource(RapierConfiguration::default())
Expand All @@ -40,7 +40,7 @@ fn setup(mut commands: Commands, mut window: Query<&mut Window>, assets: Res<Ass

commands.spawn(DirectionalLightBundle {
directional_light: DirectionalLight {
illuminance: 6000.0,
illuminance: light_consts::lux::FULL_DAYLIGHT,
shadows_enabled: true,
..default()
},
Expand Down Expand Up @@ -96,6 +96,7 @@ fn setup(mut commands: Commands, mut window: Query<&mut Window>, assets: Res<Ass
fov: TAU / 5.0,
..default()
}),
exposure: Exposure::SUNLIGHT,
..default()
},
RenderPlayer { logical_entity },
Expand All @@ -115,12 +116,12 @@ fn setup(mut commands: Commands, mut window: Query<&mut Window>, assets: Res<Ass
color: Color::BLACK,
},
)
.with_style(Style {
position_type: PositionType::Absolute,
top: Val::Px(5.0),
left: Val::Px(5.0),
..default()
}),
.with_style(Style {
position_type: PositionType::Absolute,
top: Val::Px(5.0),
left: Val::Px(5.0),
..default()
}),
);
}

Expand Down

0 comments on commit 71623b2

Please sign in to comment.