use glam::Vec3;

#[derive(Debug, Copy, Clone)]
pub struct SpotlightComponent
{
    pub offset: Vec3,
    pub direction: Vec3,
    pub range: f32,
    pub inner_angle: f32,
    pub outer_angle: f32,
}

impl SpotlightComponent
{
    pub fn new(
        offset: Vec3,
        direction: Vec3,
        range: f32,
        inner_angle: f32,
        outer_angle: f32,
    ) -> Self
    {
        Self {
            offset,
            direction: direction.normalize(),
            range,
            inner_angle,
            outer_angle,
        }
    }
}
