UFO: Alien Invasion
Loading...
Searching...
No Matches
lighting_t Struct Reference

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

#include <r_lighting.h>

Collaboration diagram for lighting_t:
Collaboration graph

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

◆ cachedLights

const light_t* lighting_t::cachedLights[MAX_ENTITY_LIGHTS]

cached static lights

Definition at line 32 of file r_lighting.h.

Referenced by R_UpdateLightList().

◆ inShadow

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().

◆ lastCachePos

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().

◆ lastLitFrame

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().

◆ lastShadowedFrame

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().

◆ lights

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().

◆ numCachedLights

int lighting_t::numCachedLights

How many static lights are in cache

Definition at line 33 of file r_lighting.h.

Referenced by R_UpdateLightList().

◆ numLights

int lighting_t::numLights

Definition at line 37 of file r_lighting.h.

Referenced by R_AddLightToEntity(), R_DrawAliasModel(), and R_UpdateLightList().

◆ shadowOrigin

vec3_t lighting_t::shadowOrigin

Definition at line 43 of file r_lighting.h.

Referenced by R_DrawMeshShadow(), R_RotateForMeshShadow(), and R_UpdateShadowOrigin().


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