UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lighting_s Struct Reference

lighting structure which contains static and dynamic lighting info for entities More...

#include <r_lighting.h>

Data Fields

vec3_t lastCachePos
 
const light_tcachedLights [MAX_ENTITY_LIGHTS]
 
int numCachedLights
 
const light_tlights [MAX_ENTITY_LIGHTS]
 
int numLights
 
int lastLitFrame
 
bool inShadow
 
vec3_t shadowOrigin
 
int lastShadowedFrame
 

Detailed Description

lighting structure which contains static and dynamic lighting info for entities

Definition at line 29 of file r_lighting.h.

Field Documentation

const light_t* lighting_s::cachedLights[MAX_ENTITY_LIGHTS]

cached static lights

Definition at line 32 of file r_lighting.h.

Referenced by R_UpdateLightList().

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.


The documentation for this struct was generated from the following file: