refactor: scene deserialization organisation

This commit is contained in:
djaidjai committed 2026-05-02 18:02:53 +02:00
1 parent a44e61c1f7
commit eb90c36ae8
8 files changed
+160 -172

No files matched your search

+1 -2
View File
@@ -11,7 +11,6 @@ use super::hit::Hit;
#[derive(Debug)]
pub struct Cube {
faces: Vec<Arc<dyn Hittable>>,
material: Arc<dyn Material>,
}
impl Cube {
@@ -34,7 +33,7 @@ impl Cube {
Arc::new(Quad::new(p5, p6, p7, p8, material.clone())),
Arc::new(Quad::new(p4, p3, p7, p8, material.clone())),
];
Self { faces, material }
Self { faces }
}
}
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.