ft: 6.5: hitlist
This commit is contained in:
1 parent
3a660f900a
commit
583b67f4f4
5 files changed
+23
-26
No files matched your search
@@ -4,8 +4,5 @@ use crate::Vec3;
|
||||
|
||||
pub trait Hittable {
|
||||
fn hit(&self, r: &Ray) -> Option<Hit>;
|
||||
}
|
||||
|
||||
pub trait Normal {
|
||||
fn normal_at(&self, p: &Vec3) -> Vec3;
|
||||
}
|
||||