//! Manages world objects, and implements intersection 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, } } }