Fixing aspect ratio and fov

This commit is contained in:
STP
2023-11-18 13:14:56 -05:00
parent 9866679dc7
commit ddb4603d07
4 changed files with 39 additions and 17 deletions

View File

@@ -12,6 +12,6 @@ impl Ray {
Ray { a, b }
}
pub fn at_t(&self, t: f32) -> Point3<f32> {
self.a + self.b.as_ref() * (t + EPSILON)
self.a + self.b.into_inner() * (t + EPSILON)
}
}