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_s::cachedLights[MAX_ENTITY_LIGHTS] |
bool lighting_s::inShadow |
true if entity is shadowed from the sun
Definition at line 41 of file r_lighting.h.
Referenced by R_UpdateLightList().
vec3_t lighting_s::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_s::lastLitFrame |
renderer frame for which those lights were calculated
Definition at line 38 of file r_lighting.h.
Referenced by R_UpdateLightList().
int lighting_s::lastShadowedFrame |
renderer frame for which this origin was calculated
Definition at line 44 of file r_lighting.h.
const light_t* lighting_s::lights[MAX_ENTITY_LIGHTS] |
static and dynamic lights sorted by distance
Definition at line 36 of file r_lighting.h.
Referenced by R_AddLightToEntity(), and R_UpdateLightList().
int lighting_s::numCachedLights |
How many static lights are in cache
Definition at line 33 of file r_lighting.h.
Referenced by R_UpdateLightList().
int lighting_s::numLights |
Definition at line 37 of file r_lighting.h.
Referenced by R_AddLightToEntity(), and R_UpdateLightList().
vec3_t lighting_s::shadowOrigin |
Definition at line 43 of file r_lighting.h.