Add color mapping to planes
This commit is contained in:
parent
ff625f576f
commit
639518c317
8 changed files with 99 additions and 35 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue