From ee8ef4e2c5a4df46f9043d652d7ffb1dabf4251c Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Wed, 21 Jul 2021 14:47:00 -0700 Subject: [PATCH] world: don't normalize light brightness by quantity of lights. That's not how they work in real life. --- rtchallenge/src/world.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtchallenge/src/world.rs b/rtchallenge/src/world.rs index 4fc9f53..7aecc54 100644 --- a/rtchallenge/src/world.rs +++ b/rtchallenge/src/world.rs @@ -6,7 +6,7 @@ use crate::{ rays::Ray, shapes::{intersect, Shape}, tuples::{Color, Tuple}, - Float, BLACK, WHITE, + BLACK, WHITE, }; /// World holds all drawable objects and the light(s) that illuminate them. @@ -145,7 +145,7 @@ impl World { shadowed, ) }); - c / self.lights.len() as Float + c } /// Compute color for given ray fired at the world. ///