This article's documentation is for the "GoldSrc" engine. Click here for more information.

Lightmap (GoldSrc)

From Valve Developer Community
Jump to navigation Jump to search
This article or section is a stub. You can help by expanding it.

A lightmap is a generated texture applied to brush faces to simulate lighting. The color values in the surface's diffuse or albedo are multiplied by the color values in its lightmap.

Lightmaps are created by QRAD (or HLRAD) each time a map is compiled.

Note.pngNote: In vanilla GoldSrc GoldSrc, lightmap scale is always 1 luxel for every 16 texels (not units), regardless of texture scale. This means that smaller texture scales will result in allocblock being used up faster.
Cpp.pngCode Fix: A custom renderer can use the DecoupledLM BSPX lump to store higher resolution lightmaps separate from texel scale; ericw-tools can create GoldSrc BSPs with this lump.
Note.pngNote: Each compiled brush polygon can host a maximum of 15x15 luxels (240x240 texels) . HLBSP will chop faces to get extra luxels on if it needs to.