1 2 3 4 5 6 7 8 9 10 11 12
//! Lights. use na::Point3; /// The light configuration. #[derive(Clone)] pub enum Light { /// A light with an absolute world position. Absolute(Point3<f32>), /// A light superimposed with the camera position. StickToCamera, }