UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lighting.cpp File Reference
#include "lighting.h"
#include "map.h"
#include "bsp.h"

Go to the source code of this file.

Functions

void LightWorld (void)
 Build the lightmap out of light entities and surface lights (patches) More...
 

Detailed Description

Note
every surface must be divided into at least two patches each axis

Definition in file lighting.cpp.

Function Documentation

void LightWorld ( void  )

Build the lightmap out of light entities and surface lights (patches)

Note
Call CalcTextureReflectivity before entering this function

Definition at line 34 of file lighting.cpp.

References BuildFacelights(), BuildLights(), BuildPatches(), BuildVertexNormals(), CloseTracingNodes(), config, curTile, FinalLightFace(), FreePatches(), LEVEL_LASTLIGHTBLOCKING, dMapTile_t::lightdata, dMapTile_t::lightdatasize, MakeTracingNodes(), dMapTile_t::numfaces, dMapTile_t::numnodes, RunThreadsOn(), SubdividePatches(), Sys_Error(), and VERB_NORMAL.

Referenced by main().