dlight

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 dynamic light on a lightmap.

Icon-Important.pngImportant:In GoldSrc GoldSrc, Due to how lightmap smoothing works, dlights will always act flat shaded even on smooth-shaded brush surfaces.
Cpp.pngCode Fix:If using a custom renderer, the VERTEXNORMALS or FACENORMALS BSPX lumps can be used to preserve smoothness data for dynamic lights.
Confirm:This is probably fixed in Source Source, which has a vertex normals lump.
Icon-Bug.pngBug:In GoldSrc GoldSrc, dlights do not work properly on surfaces that aren't set to 1.0 texel scale (a bug inherited from Quake Quake). This is best demonstrated by the glow from active Quad Damage in Deathmatch Classic Deathmatch Classic.

See also