Skip to content

Commit

Permalink
TRY-0 last fixes (#62)
Browse files Browse the repository at this point in the history
* Raytracer Fix

* Raytracer Fix

* Ambilight default

---------

Co-authored-by: Nicolas <[email protected]>
  • Loading branch information
Fabus1184 and bircni authored Jan 24, 2024
1 parent 8c43fb4 commit 34b0b4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/raytracer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl Raytracer {
origin: hit.point + hit.normal * self.delta,
direction: Self::reflect(ray.direction, hit.normal),
};
color = color.component_mul(&self.shade(reflection_ray, depth + 1));
color += color.component_mul(&self.shade(reflection_ray, depth + 1));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/scene/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl Default for Settings {
max_bounces: 4,
samples: 1,
ambient_color: Color::new(0.34, 0.14, 0.04).normalize(),
ambient_intensity: 0.5,
ambient_intensity: 0.2,
skybox: Skybox::default(),
anti_aliasing: false,
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/preview/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl Preview {
Align2::LEFT_TOP,
Color32::WHITE,
format!(
"{}\n{} {:.2}\n{} {:.2}\n{}\n{}",
"{}\n{} {:.2}\n{} {:.4}\n{}\n{}",
t!("wasd"),
t!("qe"),
self.speed,
Expand Down

0 comments on commit 34b0b4f

Please sign in to comment.