#include <light.h>
◆ Flag
Enumerator |
---|
ENABLED | |
SHADOWS_ENABLED | |
ZSPRITES | |
UPDATE_SUN | |
UPDATED | |
VIEW_UPDATED | |
SHADOW_MAPS_UPDATED | |
◆ add_light()
◆ ambient_light()
const vec4 & nngn::Lighting::ambient_light |
( |
| ) |
const |
|
inline |
◆ dir_lights() [1/2]
std::span< Light > nngn::Lighting::dir_lights |
( |
| ) |
|
|
inline |
◆ dir_lights() [2/2]
std::span< const Light > nngn::Lighting::dir_lights |
( |
| ) |
const |
|
inline |
◆ dir_proj()
const mat4 & nngn::Lighting::dir_proj |
( |
| ) |
const |
|
inline |
◆ dir_view()
const mat4 & nngn::Lighting::dir_view |
( |
size_t | i | ) |
const |
|
inline |
◆ enabled()
bool nngn::Lighting::enabled |
( |
| ) |
const |
|
inline |
◆ init()
void nngn::Lighting::init |
( |
Math * | m | ) |
|
|
inline |
◆ point_lights() [1/2]
std::span< Light > nngn::Lighting::point_lights |
( |
| ) |
|
|
inline |
◆ point_lights() [2/2]
std::span< const Light > nngn::Lighting::point_lights |
( |
| ) |
const |
|
inline |
◆ point_proj()
const mat4 & nngn::Lighting::point_proj |
( |
| ) |
const |
|
inline |
◆ point_view()
const mat4 & nngn::Lighting::point_view |
( |
size_t | i, |
|
|
size_t | f ) const |
|
inline |
◆ remove_light()
void nngn::Lighting::remove_light |
( |
Light * | l | ) |
|
◆ set_ambient_anim()
◆ set_ambient_light()
void nngn::Lighting::set_ambient_light |
( |
const vec4 & | v | ) |
|
◆ set_enabled()
void nngn::Lighting::set_enabled |
( |
bool | b | ) |
|
◆ set_shadow_map_far()
void nngn::Lighting::set_shadow_map_far |
( |
float | f | ) |
|
◆ set_shadow_map_near()
void nngn::Lighting::set_shadow_map_near |
( |
float | f | ) |
|
◆ set_shadow_map_proj_size()
void nngn::Lighting::set_shadow_map_proj_size |
( |
float | s | ) |
|
◆ set_shadows_enabled()
void nngn::Lighting::set_shadows_enabled |
( |
bool | b | ) |
|
◆ set_sun_light()
void nngn::Lighting::set_sun_light |
( |
Light * | l | ) |
|
|
inline |
◆ set_update_sun()
void nngn::Lighting::set_update_sun |
( |
bool | b | ) |
|
◆ set_zsprites()
void nngn::Lighting::set_zsprites |
( |
bool | b | ) |
|
◆ shadow_map_far()
float nngn::Lighting::shadow_map_far |
( |
| ) |
const |
|
inline |
◆ shadow_map_near()
float nngn::Lighting::shadow_map_near |
( |
| ) |
const |
|
inline |
◆ shadows_enabled()
bool nngn::Lighting::shadows_enabled |
( |
void | | ) |
const |
|
inline |
◆ sun()
Sun * nngn::Lighting::sun |
( |
| ) |
|
|
inline |
◆ sun_light() [1/2]
Light * nngn::Lighting::sun_light |
( |
| ) |
|
|
inline |
◆ sun_light() [2/2]
◆ ubo()
◆ update()
◆ update_sun()
bool nngn::Lighting::update_sun |
( |
void | | ) |
const |
|
inline |
◆ update_view()
void nngn::Lighting::update_view |
( |
const vec3 & | eye | ) |
|
◆ zsprites()
bool nngn::Lighting::zsprites |
( |
void | | ) |
const |
|
inline |
◆ flags
Flags<Flag> nngn::Lighting::flags = {Flag::ENABLED | Flag::UPDATE_SUN | Flag::UPDATED} |
|
private |
◆ m_ambient_anim
◆ m_ambient_light
vec4 nngn::Lighting::m_ambient_light = vec4(1) |
|
private |
◆ m_dir_lights
◆ m_dir_proj
mat4 nngn::Lighting::m_dir_proj = {} |
|
private |
◆ m_point_lights
◆ m_point_proj
mat4 nngn::Lighting::m_point_proj = {} |
|
private |
◆ m_shadow_map_far
float nngn::Lighting::m_shadow_map_far = 1024.0f |
|
private |
◆ m_shadow_map_near
float nngn::Lighting::m_shadow_map_near = 1.0f |
|
private |
◆ m_shadow_map_proj_size
float nngn::Lighting::m_shadow_map_proj_size = 128.0f |
|
private |
◆ m_sun
Sun nngn::Lighting::m_sun = {} |
|
private |
◆ m_sun_light
Light* nngn::Lighting::m_sun_light = nullptr |
|
private |
◆ m_ubo
◆ math
Math* nngn::Lighting::math = nullptr |
|
private |
◆ MAX_LIGHTS
◆ n_dir
size_t nngn::Lighting::n_dir = 0 |
|
private |
◆ n_point
size_t nngn::Lighting::n_point = 0 |
|
private |
◆ view_pos
vec3 nngn::Lighting::view_pos = {} |
|
private |
◆ views
The documentation for this class was generated from the following files: