Add color mapping to planes

This commit is contained in:
bijan2005 2020-11-30 11:56:55 -05:00
parent ff625f576f
commit 639518c317
8 changed files with 99 additions and 35 deletions

View file

@ -21,7 +21,7 @@ impl Ray {
pub fn project(&self, t: f32) -> Point3<f32> { self.origin + t * self.direction.into_inner() }
}
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Color {
pub red: f32,
pub green: f32,