$selfillum
Jump to navigation
Jump to search
The $selfillum VMT command makes a material glow in the dark. Shaders commonly support this effect.
The effect is masked either by the alpha channel of $basetexture or with a greyscale texture specified with $selfillummask. In either case, white areas are self-illuminated while black areas are not.
VMT syntax example
$selfillum <bool>
LightmappedGeneric { $basetexture props/tvscreen005a $selfillum 1 $surfaceprop glass }
Additional parameters
$selfillumtint <RGB matrix>- Adjusts the colour of the self-illumination effect. Default value is "[1 1 1]".
$selfillummask <texture>- A dedicated masking texture for the effect. If this command is not used, the alpha channel of
$basetexturewill be used instead. Might not work in Ep1. $selfillum_envmapmask_alpha <bool>- Has the material derive its self-illumination mask from the alpha channel of the
$envmapmask. Requires DirectX 9.