|
UFO: Alien Invasion
|
lighting structure which contains static and dynamic lighting info for entities More...
#include <r_lighting.h>

Data Fields | |
| vec3_t | lastCachePos |
| const light_t * | cachedLights [MAX_ENTITY_LIGHTS] |
| int | numCachedLights |
| const light_t * | lights [MAX_ENTITY_LIGHTS] |
| int | numLights |
| int | lastLitFrame |
| bool | inShadow |
| vec3_t | shadowOrigin |
| int | lastShadowedFrame |
lighting structure which contains static and dynamic lighting info for entities
Definition at line 29 of file r_lighting.h.
| const light_t* lighting_t::cachedLights[MAX_ENTITY_LIGHTS] |
| bool lighting_t::inShadow |
true if entity is shadowed from the sun
Definition at line 41 of file r_lighting.h.
Referenced by R_DrawAliasModel(), and R_UpdateLightList().
| vec3_t lighting_t::lastCachePos |
Static light interaction was last calculated for this coords
Definition at line 31 of file r_lighting.h.
Referenced by R_UpdateLightList().
| int lighting_t::lastLitFrame |
renderer frame for which those lights were calculated
Definition at line 38 of file r_lighting.h.
Referenced by R_UpdateLightList().
| int lighting_t::lastShadowedFrame |
renderer frame for which this origin was calculated
Definition at line 44 of file r_lighting.h.
Referenced by R_UpdateShadowOrigin().
| const light_t* lighting_t::lights[MAX_ENTITY_LIGHTS] |
static and dynamic lights sorted by distance
Definition at line 36 of file r_lighting.h.
Referenced by R_AddLightToEntity(), R_DrawAliasModel(), and R_UpdateLightList().
| int lighting_t::numCachedLights |
How many static lights are in cache
Definition at line 33 of file r_lighting.h.
Referenced by R_UpdateLightList().
| int lighting_t::numLights |
Definition at line 37 of file r_lighting.h.
Referenced by R_AddLightToEntity(), R_DrawAliasModel(), and R_UpdateLightList().
| vec3_t lighting_t::shadowOrigin |
Definition at line 43 of file r_lighting.h.
Referenced by R_DrawMeshShadow(), R_RotateForMeshShadow(), and R_UpdateShadowOrigin().