#include <light.h>
Public Member Functions | |
Light (Entity *entity, Graphics &gfx, int num, float scale) | |
void | render_shadow_volume (Graphics &gfx, int index) |
void | render_map_shadowvol (Graphics &gfx) |
void | generate_map_volumes (Graphics &gfx, Bsp &map, int current_light) |
void | generate_ent_volumes (Graphics &gfx, vector< Entity * > &entity_list) |
void | destroy (Graphics &gfx) |
void | generate_cubemaps (Graphics &gfx) |
Public Attributes | |
Entity * | entity |
unsigned int | fbo_shadowmaps [NUM_CUBE_FACE] |
unsigned int | quad_tex [NUM_CUBE_FACE] |
unsigned int | depth_tex [NUM_CUBE_FACE] |
unsigned int | array_tex |
matrix4 | shadow_projection |
matrix4 | shadow_matrix [NUM_CUBE_FACE] |
int | shadow_flag |
ShadowVolume | shadow [MAX_SHADOWVOL] |
int | num_shadowvol |
ShadowVolume | map_shadow |
vec3 | color |
float | intensity |
float | attenuation |
bool | active |
bool | timer_flag |
float | lightmap_scale |
int | timer |
unsigned int | light_num |
void Light::destroy | ( | Graphics & | gfx | ) |
void Light::generate_cubemaps | ( | Graphics & | gfx | ) |
void Light::render_map_shadowvol | ( | Graphics & | gfx | ) |
void Light::render_shadow_volume | ( | Graphics & | gfx, |
int | index | ||
) |
bool Light::active |
unsigned int Light::array_tex |
float Light::attenuation |
vec3 Light::color |
unsigned int Light::depth_tex[NUM_CUBE_FACE] |
Entity* Light::entity |
unsigned int Light::fbo_shadowmaps[NUM_CUBE_FACE] |
float Light::intensity |
unsigned int Light::light_num |
float Light::lightmap_scale |
ShadowVolume Light::map_shadow |
int Light::num_shadowvol |
unsigned int Light::quad_tex[NUM_CUBE_FACE] |
ShadowVolume Light::shadow[MAX_SHADOWVOL] |
int Light::shadow_flag |
matrix4 Light::shadow_matrix[NUM_CUBE_FACE] |
matrix4 Light::shadow_projection |
int Light::timer |
bool Light::timer_flag |