Struct light¶
Defined in File light.hpp
Struct Documentation¶
-
struct
legion::rendering
::
light
¶ Public Functions
-
light
()¶
-
const detail::light_data &
get_light_data
(const ecs::component_handle<position> &pos, const ecs::component_handle<rotation> &rot)¶
-
void
set_type
(light_type type)¶
-
void
set_attenuation
(float attenuation)¶
-
void
set_intensity
(float intensity)¶
-
void
set_color
(math::color color)¶
-
void
set_angle
(float angle)¶
-
void
set_falloff_power
(float power)¶
Public Members
-
detail::light_data
m_lightData
¶
-
light_type
m_type
¶
-
float
m_attenuation
¶
-
float
m_intensity
¶
-
uint
m_index
¶
-
math::vec3
m_direction
¶
-
float
m_falloff
¶
-
math::vec3
m_position
¶
-
float
m_angle
¶
-
math::color
m_color
¶
-