ft (wip): random scene generation

This commit is contained in:
djaidjai committed 2026-04-25 05:20:15 +02:00
1 parent 5f2c419af5
commit ef8da70436
4 files changed
+113 -23

No files matched your search

+3
View File
@@ -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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.