Struct light

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)
template<class Archive>
inline void serialize(Archive &archive)

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

Public Static Functions

static light directional(math::color color = math::colors::white, float intensity = 1.0)
static light spot(math::color color = math::colors::white, float angle = 0.785398f, float intensity = 1.0, float attenuation = 10, float falloff = 3.141592f)
static light point(math::color color = math::colors::white, float intensity = 1.0, float attenuation = 10, float falloff = 3.141592f)

Protected Attributes

union legion::rendering::light::[anonymous] [anonymous]