//! Manages world objects, and implements intersection pub mod shapes; mod scene; pub use scene::*; use std::sync::Arc; use crate::core::Hittable; use crate::material::Material; pub struct Object { pub shape: Box, pub mat: Arc, } impl Object { pub fn new(mat: Arc, shape: Box) -> Self { Object { mat, shape, } } }