aboutsummaryrefslogtreecommitdiff
path: root/src/scene/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/scene/mod.rs')
-rw-r--r--src/scene/mod.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/scene/mod.rs b/src/scene/mod.rs
deleted file mode 100644
index cd07236..0000000
--- a/src/scene/mod.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-//! Defines the scene type which contains all the objects in the scene.
-//!
-//! Also handles finding intersections between rays and shapes
-pub mod shapes;
-
-mod scene;
-pub use scene::*;
-
-use std::rc::Rc;
-use crate::core::Hittable;
-use crate::material::Material;
-
-pub struct Object {
- pub shape: Box<dyn Hittable>,
- pub mat: Rc<dyn Material>,
-}
-
-impl Object {
- pub fn new(mat: Rc<dyn Material>, shape: Box<dyn Hittable>) -> Self {
- Object {
- mat,
- shape,
- }
- }
-}