1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
//! Lights.

use na::Point3;
use gl::types::GLfloat;

/// The light configuration.
#[derive(Clone)]
pub enum Light {
    /// A light with an absolute world position.
    Absolute(Point3<GLfloat>),
    /// A light superimposed with the camera position.
    StickToCamera
}