fx: ran linter

This commit is contained in:
djaidjai committed 2026-05-02 14:02:06 +02:00
1 parent 17ad6e30db
commit a44e61c1f7
7 files changed
+14 -32

No files matched your search

-16
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);
}
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.