20 #ifndef ANTKEEPER_SCENE_SPOT_LIGHT_HPP
21 #define ANTKEEPER_SCENE_SPOT_LIGHT_HPP
48 m_luminous_flux = luminous_flux;
54 return m_luminous_flux;
79 return m_cosine_cutoff;
83 void transformed()
override;
87 math::fvec2 m_cutoff{math::pi<float>, math::pi<float>};
Abstract base class for light objects.
Directional cone light source.
const math::fvec2 & get_cutoff() const noexcept
Returns the spot light cutoff angles.
const math::fvec2 & get_cosine_cutoff() const noexcept
Returns the cosine of the spot light cutoff angles.
const math::fvec3 & get_luminous_flux() const noexcept
Returns the luminous flux of the spot light, in lm.
void set_cutoff(const math::fvec2 &cutoff)
Sets the spot light cutoff angles.
void set_luminous_flux(const math::fvec3 &luminous_flux) noexcept
Sets the luminous flux of the spot light.
light_type get_light_type() const noexcept override
Returns light_type::spot.
const math::fvec3 & get_direction() const noexcept
Returns the direction vector.