Skip to content

Commit

Permalink
Fix lights.
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia committed Apr 14, 2024
1 parent e93a607 commit d9ad107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bevy_nannou/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct MyTexture(Handle<Image>);
fn startup(mut commands: Commands, assets: Res<AssetServer>, mut meshes: ResMut<Assets<Mesh>>) {
commands.insert_resource(AmbientLight {
color: Color::WHITE,
brightness: 1.0,
brightness: 1000.0,
});

commands.spawn(PointLightBundle {
Expand Down
2 changes: 1 addition & 1 deletion nannou/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ where
// This ensures that color materials are rendered correctly.
.insert_resource(AmbientLight {
color: Color::WHITE,
brightness: 1.0,
brightness: 1000.0,
})
.insert_resource(self.config.clone())
.insert_resource(ModelFnRes(self.model))
Expand Down

0 comments on commit d9ad107

Please sign in to comment.