use he3d_math::Vec3;
use crate::Rgb;
#[derive(Clone, Copy, PartialEq, Debug)]
pub struct DirectionalLight {
pub direction: Vec3,
pub color: Rgb,
pub ambient: f32,
}
impl Default for DirectionalLight {
fn default() -> Self {
Self {
direction: Vec3::new(0.0, -1.0, 1.0),
color: Rgb::WHITE,
ambient: 0.15,
}
}
}