Skip to content

Commit

Permalink
Adjust light intensity in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
asny committed Aug 9, 2023
1 parent 8f34ee6 commit d509323
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/lights/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub async fn run() {
let mut lights = Vec::new();

// main loop
let mut intensity = 1.0;
let mut intensity = 3.0;
let mut constant = 0.0;
let mut linear = 0.5;
let mut quadratic = 0.5;
Expand Down
2 changes: 1 addition & 1 deletion examples/terrain/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub async fn run() {
};

let skybox = Skybox::new_from_equirectangular(&context, &loaded.deserialize("hdr").unwrap());
let light = AmbientLight::new_with_environment(&context, 1.0, Srgba::WHITE, skybox.texture());
let light = AmbientLight::new_with_environment(&context, 0.7, Srgba::WHITE, skybox.texture());

let noise_generator = SuperSimplex::new();
let height_map = std::sync::Arc::new(move |x, y| {
Expand Down

0 comments on commit d509323

Please sign in to comment.