use ecs::Component; use crate::color::Color; #[derive(Debug, Clone, Component)] pub struct LightSource { pub ambient: Color, pub diffuse: Color, pub specular: Color, } impl Default for LightSource { fn default() -> Self { Self { ambient: Color { red: 0.2, green: 0.2, blue: 0.2 }, diffuse: Color { red: 0.5, green: 0.5, blue: 0.5 }, specular: Color { red: 1.0, green: 1.0, blue: 1.0 }, } } }