1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use crate::math::Color; #[derive(Debug, Clone, Copy)] pub struct AmbientLight { pub color: Color, pub intensity: f32, } impl Default for AmbientLight { fn default() -> Self { Self::new(Color::WHITE, 1.0) } } impl AmbientLight { pub const fn new(color: Color, intensity: f32) -> Self { Self { color, intensity } } }