ft (wip): deserialization

This commit is contained in:
djaidjai committed 2026-04-25 14:46:03 +02:00
1 parent ef8da70436
commit 430bdf63bc
15 files changed
+421 -158

No files matched your search

+3 -1
View File
@@ -1,8 +1,10 @@
use std::fmt::Debug;
use crate::objects::hit::Hit;
use crate::Ray;
use crate::Vec3;
pub trait Hittable {
pub trait Hittable: Debug {
fn hit(&self, r: &Ray) -> Option<Hit>;
fn normal_at(&self, p: &Vec3) -> Vec3;
// fn intersect<H: Hittable>(&self, o: &H) -> bool;
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.