ft (wip): random scene generation
This commit is contained in:
1 parent
5f2c419af5
commit
ef8da70436
4 files changed
+113
-23
No files matched your search
@@ -5,4 +5,7 @@ use crate::Vec3;
|
||||
pub trait Hittable {
|
||||
fn hit(&self, r: &Ray) -> Option<Hit>;
|
||||
fn normal_at(&self, p: &Vec3) -> Vec3;
|
||||
// fn intersect<H: Hittable>(&self, o: &H) -> bool;
|
||||
fn inside(&self, p: &Vec3) -> bool;
|
||||
fn closest_on_surface(&self, p: &Vec3) -> Vec3;
|
||||
}
|
||||