materials: use crate definition for BLACK.

This commit is contained in:
Bill Thiede 2021-07-17 16:12:04 -07:00
parent b3737dcd5f
commit 86d052d38b

View File

@ -2,6 +2,7 @@ use crate::{
lights::PointLight, lights::PointLight,
tuples::Color, tuples::Color,
tuples::{dot, reflect, Tuple}, tuples::{dot, reflect, Tuple},
BLACK,
}; };
#[derive(Debug, PartialEq, Clone)] #[derive(Debug, PartialEq, Clone)]
pub struct Material { 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. /// Compute lighting contributions using the Phong reflection model.
/// ///
/// # Examples /// # Examples