fx: ran linter
This commit is contained in:
@@ -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