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

lightinfo is a temporary bucket for lighting calculations More...

Collaboration diagram for lightinfo_t:
Collaboration graph

Data Fields

vec_t facedist
vec3_t facenormal
int numsurfpt
vec3_tsurfpt
vec3_t modelorg
vec3_t texorg
vec3_t worldtotex [2]
vec3_t textoworld [2]
int texmins [2]
int texsize [2]
int step
dBspSurface_tface

Detailed Description

lightinfo is a temporary bucket for lighting calculations

Definition at line 37 of file lightmap.cpp.

Field Documentation

◆ face

dBspSurface_t* lightinfo_t::face

◆ facedist

vec_t lightinfo_t::facedist

Definition at line 38 of file lightmap.cpp.

Referenced by BuildFacelights(), and CalcLightinfoVectors().

◆ facenormal

vec3_t lightinfo_t::facenormal

Definition at line 39 of file lightmap.cpp.

Referenced by BuildFacelights(), and CalcLightinfoVectors().

◆ modelorg

vec3_t lightinfo_t::modelorg

for origined bmodels

Definition at line 44 of file lightmap.cpp.

Referenced by BuildFacelights(), and CalcLightinfoVectors().

◆ numsurfpt

int lightinfo_t::numsurfpt

Definition at line 41 of file lightmap.cpp.

Referenced by BuildFacelights(), and CalcLightinfoVectors().

◆ step

int lightinfo_t::step

step between samples in tex2world units

Definition at line 53 of file lightmap.cpp.

Referenced by BuildFacelights(), CalcLightinfoVectors(), and CalcPoints().

◆ surfpt

vec3_t* lightinfo_t::surfpt

Definition at line 42 of file lightmap.cpp.

Referenced by BuildFacelights(), CalcLightinfoVectors(), and CalcPoints().

◆ texmins

int lightinfo_t::texmins[2]

Definition at line 50 of file lightmap.cpp.

Referenced by CalcLightinfoExtents(), and CalcPoints().

◆ texorg

vec3_t lightinfo_t::texorg

Definition at line 46 of file lightmap.cpp.

Referenced by CalcLightinfoVectors(), and CalcPoints().

◆ texsize

int lightinfo_t::texsize[2]

the size of the lightmap in pixel

Definition at line 51 of file lightmap.cpp.

Referenced by CalcLightinfoExtents(), CalcLightinfoVectors(), and CalcPoints().

◆ textoworld

vec3_t lightinfo_t::textoworld[2]

world = texorg + s * textoworld[0]

Definition at line 48 of file lightmap.cpp.

Referenced by BuildFacelights(), CalcLightinfoVectors(), and CalcPoints().

◆ worldtotex

vec3_t lightinfo_t::worldtotex[2]

s = (world - texorg) . worldtotex[0]

Definition at line 47 of file lightmap.cpp.

Referenced by CalcLightinfoVectors().


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