Light.dbc

The light table contains definitions for lights, fogs, sky color, water color, etc.

Table structure

ID Name Type Default Description
1 ID Integer
Unique ID
2 map Integer 0 References the map to which the lighting applies.
3 locationX Float 0 X coordinate for the lighting.
4 locationY Float 0 Y coordinate for the lighting.
5 locationZ Float 0 Z coordinate for the lighting.
6 falloffStart Float 0 If within the inner radius there shouldn’t be any interpolation with other lights.
7 falloffEnd Float 0 If outside the inner radius but inside the outer radius then this light can be interpolated with other lights.
8 lightParams1 Integer 0 References the light parameters used for sky & fog.
9 lightParams2 Integer 0 References the light parameters used for water.
10 lightParams3 Integer 0 References the light parameters used for sunset.
11 lightParams4 Integer 0 References the light parameters used for misc.
12 lightParams5 Integer 0 References the light parameters used for death.

Relations

Notes

\[pos.x = 17066.666 - pos.x / 36.0f; pos.y = 17066.666 - pos.y / 36.0f; pos.z = pos.z / 36.0f; falloffStart = falloffStart / 36.0f; falloffEnd = falloffEnd / 36.0f;\]