$selfillum: Difference between revisions
Jump to navigation
Jump to search
Warning:Cannot be used with
Line 21: | Line 21: | ||
; <code>$selfillumtint "[<red [[float]]> <green float> <blue float>]"</code> | ; <code>$selfillumtint "[<red [[float]]> <green float> <blue float>]"</code> | ||
: Adjusts the colour of the self-illumination effect. Default value is "[1 1 1]". | : Adjusts the colour of the self-illumination effect. Default value is "[1 1 1]". | ||
;<code>$selfillummask <texture></code> { | ;<code>$selfillummask <texture></code> {{note|Use this only for Source 2007.}} | ||
: A dedicated mask texture for the effect. Might not work in Ep1. | : A dedicated mask texture for the effect. Might not work in Ep1. | ||
; <code>$selfillum_envmapmask_alpha <[[bool]]></code> | ; <code>$selfillum_envmapmask_alpha <[[bool]]></code> | ||
: Has the material derive its self-illumination mask from the alpha channel of the <code>[[$envmapmask]]</code>. Requires DirectX 9. | : Has the material derive its self-illumination mask from the alpha channel of the <code>[[$envmapmask]]</code>. Requires DirectX 9. | ||
;<code>$selfillumtexture <texture></code> | ;<code>$selfillumtexture <texture></code> {{Bug|Deprecated with Source 2007; doesn't work.}} | ||
: Use a selfillum texture. | : Use a selfillum texture. | ||
[[Category:List of Shader Parameters|S]] | [[Category:List of Shader Parameters|S]] | ||
[[Category:VMT Lighting]] | [[Category:VMT Lighting]] |
Revision as of 21:30, 31 January 2011
The $selfillum VMT command makes a material glow in the dark. Shaders commonly support this effect.
The effect is masked by default by the alpha channel of $basetexture
, but there are other options (see below). Wherever the mask is located, white areas are self-illuminated while black areas are not.

$translucent
on models.Todo: Possible fix?
VMT syntax example
$selfillum <bool>
LightmappedGeneric { $basetexture props/tvscreen005a $selfillum 1 $surfaceprop glass }
Additional parameters
$selfillumtint "[<red float> <green float> <blue float>]"
- Adjusts the colour of the self-illumination effect. Default value is "[1 1 1]".
$selfillummask <texture>
Note:Use this only for Source 2007.
- A dedicated mask texture for the effect. 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. $selfillumtexture <texture>
Bug:Deprecated with Source 2007; doesn't work. [todo tested in ?]
- Use a selfillum texture.