Format:LIT (Quake)
Appearance
| Versions | 1 |
|---|---|
| Magic | 51 4C 49 54 ("QLIT") at offset 0, then int32 1 |
| Extensions | .lit |
| Endianness | little |
| On this wiki | Facts · Code · Notes · Topics |
Coloured lightmap side file for Format:BSP (Quake) maps (`maps/<map>.lit`), introduced by community engines and compilers after id's release: magic "QLIT", `int32` version 1, then three bytes (R, G, B) for every byte of the BSP's lighting lump. The original Quake engine ignores it.
Identification
QLIT at offset 0, int32 version 1, then raw data. The file size is always 8 + 3 * filelen(lighting lump) of the matching .bsp.
Structure
The body mirrors the BSP lighting lump sample for sample: where the BSP has one 8-bit intensity at offset n, the LIT has R, G, B at 8 + 3n. Face lightofs values from the BSP therefore address the LIT after multiplying by 3. Engines that support it (most modern source ports) load it instead of the monochrome lump if present.
Evidence & references
- Not part of id's source release; written by compilers such as ericw-tools
light. - Runtime test: all 8
.litfiles in LibreQuake v0.09-betapak0.pakstart withQLITand version 1, and each is exactly 8 + 3 x the lighting lump length of the.bspof the same name.
Open questions
- Which engine introduced it and in which year? Unverified lead: an early Windows source port around 1999-2000; check old source port changelogs.