Lightmap (Source 2)

From Valve Developer Community
Jump to navigation Jump to search

Stub

This article or section is a stub. You can help by expanding it.

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

Lightmaps are created by VRAD3 (formerly VRAD2) each time a map is compiled.

In Source 2 Source 2, individual faces can be biased, giving them priority over other faces. The actual scale is dictated by total lightmap resolution, which is controlled separately.
Note.pngNote:Lightmaps in Source 2 are 512x512 each. For example, compiling lighting at 8192 resolution compile (currently the maximum VRAD3 permits) will actually create 256 lightmaps (16x16).
Note.pngNote:Source 2 Source 2 generates lightmaps for all static meshes.
Icon-Important.pngImportant:Unlike Source 1, mesh entities in Source 2 are never lightmapped; in order to get proper lighting on mesh entities, lightprobes must be built.