//! 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, pub mat: Rc, } impl Object { pub fn new(mat: Rc, shape: Box) -> Self { Object { mat, shape, } } }