elight
Jump to navigation
Jump to search
This article or section is a stub. You can help by expanding it.
A dynamic light on an MDL.
Games such as
Half-Life create temporary elights at an $attachment on gun models to create muzzle flashes.
In
Source, all light and light_spot entities, as well as RAD file texlights, cast elights unless a custom VRAD is used. This can cause lighting issues on playermodels and viewmodels when "fake" light sources are used to fix areas that are too dark when lit realistically.
Todo: elights in code
Source combines the code used for both dlights and elights into a singular dlight_t struct, using flags to disable lightmap or studiomodel brightening respectively. The term "elight" is still occasionally used, such as in the code for npc_advisor.
See also
- dlight, the equivalent for brushes
- light_dynamic