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

+1 -1
View File
@@ -45,7 +45,7 @@ impl Hit {
self.front_face
}
pub fn hit_list<T: Hittable>(hittables: &Vec<T>, r: &Ray) -> Option<Hit> {
pub fn hit_list(hittables: &Vec<Arc<dyn Hittable>>, r: &Ray) -> Option<Hit> {
let mut closest: Option<Hit> = None;
for hittable in hittables {
if let Some(hit) = hittable.hit(r) {
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.