From 86d052d38b81535f687d718da27a43616f2575b8 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sat, 17 Jul 2021 16:12:04 -0700 Subject: [PATCH] materials: use crate definition for BLACK. --- rtchallenge/src/materials.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rtchallenge/src/materials.rs b/rtchallenge/src/materials.rs index ee436d9..64485ce 100644 --- a/rtchallenge/src/materials.rs +++ b/rtchallenge/src/materials.rs @@ -2,6 +2,7 @@ use crate::{ lights::PointLight, tuples::Color, tuples::{dot, reflect, Tuple}, + BLACK, }; #[derive(Debug, PartialEq, Clone)] pub struct Material { @@ -42,8 +43,6 @@ impl Default for Material { } } -const BLACK: Color = Color::new(0., 0., 0.); - /// Compute lighting contributions using the Phong reflection model. /// /// # Examples