#include <light.h>
◆ Type
◆ Light() [1/2]
◆ Light() [2/2]
nngn::Light::Light |
( |
Type | t | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ att_for_range()
static constexpr vec3 nngn::Light::att_for_range |
( |
float | r | ) |
|
|
inlinestaticconstexpr |
◆ ortho_view()
mat4 nngn::Light::ortho_view |
( |
float | far | ) |
const |
◆ ortho_view_pos()
vec3 nngn::Light::ortho_view_pos |
( |
float | far | ) |
const |
◆ persp_view()
mat4 nngn::Light::persp_view |
( |
int | face, |
|
|
bool | zsprites ) const |
◆ range()
float nngn::Light::range |
( |
| ) |
const |
|
inline |
◆ set_att()
void nngn::Light::set_att |
( |
lua_State * | L | ) |
|
◆ set_color()
void nngn::Light::set_color |
( |
const vec4 & | c | ) |
|
◆ set_cutoff()
void nngn::Light::set_cutoff |
( |
float | v | ) |
|
◆ set_dir()
◆ set_pos()
◆ set_spec()
void nngn::Light::set_spec |
( |
float | v | ) |
|
◆ write_to_ubo_dir()
◆ write_to_ubo_point()
void nngn::Light::write_to_ubo_point |
( |
LightsUBO * | ubo, |
|
|
size_t | i, |
|
|
bool | zsprites ) const |
◆ att
vec3 nngn::Light::att = {1, 0, 0} |
◆ color
vec4 nngn::Light::color = {} |
◆ cutoff
float nngn::Light::cutoff = 0.0f |
◆ dir
vec3 nngn::Light::dir = {} |
Entity* nngn::Light::e = nullptr |
◆ pos
vec3 nngn::Light::pos = {} |
◆ spec
float nngn::Light::spec = 1.0f |
◆ type
◆ updated
bool nngn::Light::updated = true |
The documentation for this struct was generated from the following files: