#include <LightComponent.h>
Definition at line 19 of file LightComponent.h.
◆ LightType
◆ LightComponent()
◆ get_attenuation()
| float hellfire::LightComponent::get_attenuation |
( |
| ) |
const |
|
inline |
◆ get_color()
| const glm::vec3 & hellfire::LightComponent::get_color |
( |
| ) |
const |
|
inline |
◆ get_direction()
| const glm::vec3 & hellfire::LightComponent::get_direction |
( |
| ) |
|
|
inline |
◆ get_inner_cone_angle()
| float hellfire::LightComponent::get_inner_cone_angle |
( |
| ) |
const |
|
inline |
◆ get_intensity()
| const float & hellfire::LightComponent::get_intensity |
( |
| ) |
const |
|
inline |
◆ get_light_type()
| LightType hellfire::LightComponent::get_light_type |
( |
| ) |
const |
|
inline |
◆ get_light_view_proj_matrix()
| const glm::mat4 & hellfire::LightComponent::get_light_view_proj_matrix |
( |
| ) |
const |
|
inline |
◆ get_outer_cone_angle()
| float hellfire::LightComponent::get_outer_cone_angle |
( |
| ) |
const |
|
inline |
◆ get_range()
| float hellfire::LightComponent::get_range |
( |
| ) |
const |
|
inline |
◆ look_at() [1/2]
| void hellfire::LightComponent::look_at |
( |
const float |
x, |
|
|
const float |
y, |
|
|
const float |
z |
|
) |
| |
|
inline |
◆ look_at() [2/2]
| void hellfire::LightComponent::look_at |
( |
const glm::vec3 & |
target | ) |
|
|
inline |
◆ set_attenuation()
| void hellfire::LightComponent::set_attenuation |
( |
const float |
attenuation | ) |
|
|
inline |
◆ set_cast_shadows()
| void hellfire::LightComponent::set_cast_shadows |
( |
const bool |
cast_shadows | ) |
|
|
inline |
◆ set_color()
| void hellfire::LightComponent::set_color |
( |
const glm::vec3 & |
color | ) |
|
|
inline |
◆ set_direction() [1/2]
| void hellfire::LightComponent::set_direction |
( |
const float |
x, |
|
|
const float |
y, |
|
|
const float |
z |
|
) |
| |
|
inline |
◆ set_direction() [2/2]
| void hellfire::LightComponent::set_direction |
( |
const glm::vec3 & |
direction | ) |
|
|
inline |
◆ set_inner_cone_angle()
| void hellfire::LightComponent::set_inner_cone_angle |
( |
const float |
angle | ) |
|
|
inline |
◆ set_intensity()
| void hellfire::LightComponent::set_intensity |
( |
const float |
intensity | ) |
|
|
inline |
◆ set_light_type()
| void hellfire::LightComponent::set_light_type |
( |
const LightType |
type | ) |
|
|
inline |
◆ set_light_view_proj_matrix()
| void hellfire::LightComponent::set_light_view_proj_matrix |
( |
const glm::mat4 & |
lvpm | ) |
|
|
inline |
◆ set_outer_cone_angle()
| void hellfire::LightComponent::set_outer_cone_angle |
( |
const float |
angle | ) |
|
|
inline |
◆ set_range()
| void hellfire::LightComponent::set_range |
( |
const float |
range | ) |
|
|
inline |
◆ should_cast_shadows()
| bool hellfire::LightComponent::should_cast_shadows |
( |
| ) |
const |
|
inline |
◆ upload_directional_to_shader()
| void hellfire::LightComponent::upload_directional_to_shader |
( |
Shader & |
shader, |
|
|
const int |
light_index |
|
) |
| const |
|
inlineprivate |
◆ upload_point_to_shader()
| void hellfire::LightComponent::upload_point_to_shader |
( |
Shader & |
shader, |
|
|
const int |
light_index |
|
) |
| const |
|
inlineprivate |
◆ upload_spot_to_shader()
| void hellfire::LightComponent::upload_spot_to_shader |
( |
Shader & |
shader, |
|
|
int |
light_index |
|
) |
| const |
|
inlineprivate |
◆ upload_to_shader()
| void hellfire::LightComponent::upload_to_shader |
( |
Shader & |
shader, |
|
|
const int |
light_index |
|
) |
| const |
|
inline |
◆ attenuation_
| float hellfire::LightComponent::attenuation_ = 1.0f |
|
private |
◆ cast_shadows_
| bool hellfire::LightComponent::cast_shadows_ = true |
|
private |
◆ color_
| glm::vec3 hellfire::LightComponent::color_ = glm::vec3(1.0f) |
|
private |
◆ direction_
| glm::vec3 hellfire::LightComponent::direction_ = glm::vec3(0.0f, -1.0f, 0.0f) |
|
private |
◆ inner_cone_angle_
| float hellfire::LightComponent::inner_cone_angle_ = 30.0f |
|
private |
◆ intensity_
| float hellfire::LightComponent::intensity_ = 1.0f |
|
private |
◆ light_view_proj_matrix
| glm::mat4 hellfire::LightComponent::light_view_proj_matrix = glm::mat4(1.0f) |
|
private |
◆ outer_cone_angle_
| float hellfire::LightComponent::outer_cone_angle_ = 45.0f |
|
private |
◆ range_
| float hellfire::LightComponent::range_ = 10.0f |
|
private |
◆ type_
The documentation for this class was generated from the following file: