From 41f3b63ad0bee557adb9879ef4c2eb805bc55dc3 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Wed, 21 Jul 2021 14:44:29 -0700 Subject: [PATCH] eoc9: one less light, and brighter --- rtchallenge/examples/eoc9.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rtchallenge/examples/eoc9.rs b/rtchallenge/examples/eoc9.rs index 217c5a8..192cf86 100644 --- a/rtchallenge/examples/eoc9.rs +++ b/rtchallenge/examples/eoc9.rs @@ -38,10 +38,8 @@ fn main() -> Result<()> { let light_color = WHITE; let light1 = PointLight::new(light_position, light_color); let light_position = Tuple::point(10., 10., -10.); - let light_color = Color::new(0.2, 0.2, 0.2); + let light_color = Color::new(0.6, 0.6, 0.6); let light2 = PointLight::new(light_position, light_color); - let light_position = Tuple::point(0., 10., -10.); - let light3 = PointLight::new(light_position, light_color); let mut camera = Camera::new(width, height, PI / 4.); let from = Tuple::point(0., 1.5, -5.); @@ -53,7 +51,7 @@ fn main() -> Result<()> { let mut floor = Shape::plane(); floor.material = Material { - color: Color::new(1., 0.9, 0.9), + color: Color::new(1., 0.2, 0.2), specular: 0., ..Material::default() };