diff --git a/src/raytracer/mod.rs b/src/raytracer/mod.rs index 3cc402f..ec4ac5c 100644 --- a/src/raytracer/mod.rs +++ b/src/raytracer/mod.rs @@ -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)); } } diff --git a/src/scene/settings.rs b/src/scene/settings.rs index f6153a1..3bb3cdf 100644 --- a/src/scene/settings.rs +++ b/src/scene/settings.rs @@ -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, } diff --git a/src/ui/preview/mod.rs b/src/ui/preview/mod.rs index aef91ee..0615dcd 100644 --- a/src/ui/preview/mod.rs +++ b/src/ui/preview/mod.rs @@ -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,