UFO: Alien Invasion
Loading...
Searching...
No Matches
lighting.cpp File Reference
#include "lighting.h"
#include "map.h"
#include "bsp.h"
Include dependency graph for lighting.cpp:

Go to the source code of this file.

Functions

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

Detailed Description

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

Definition in file lighting.cpp.

Function Documentation

◆ LightWorld()

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, MakeTracingNodes(), RunThreadsOn(), SubdividePatches(), Sys_Error(), and VERB_NORMAL.

Referenced by main().