fx: ran linter

This commit is contained in:
2026-05-02 14:02:06 +02:00
parent 17ad6e30db
commit a44e61c1f7
7 changed files with 14 additions and 32 deletions

View File

@@ -40,22 +40,6 @@ impl Debug for Scene {
}
impl Scene {
pub fn new(image_width: u32, image_height: u32) -> Self {
Self {
camera: Camera::new(image_width, image_height),
materials: vec![],
objects: vec![],
}
}
pub fn camera(&mut self) -> &mut Camera {
&mut self.camera
}
pub fn add_hittable(&mut self, hittable: Arc<dyn Hittable>) {
self.objects.push(hittable);
}
pub fn render(&mut self) {
self.camera.render(&self.objects);
}