added antialiasing

This commit is contained in:
2023-01-29 20:06:49 +01:00
parent 7a4dd5a1b9
commit 95f5132d1d
9 changed files with 637 additions and 566 deletions

View File

@@ -25,5 +25,5 @@ impl HitRecord {
}
pub trait Hittable {
fn hit(&self, r: &Ray, t_min: f64, t_max: f64, rec: &mut HitRecord) -> bool;
fn hit(&mut self, r: &Ray, t_min: f64, t_max: f64, rec: &mut HitRecord) -> bool;
}