Fr/$selfillum: Difference between revisions
< Fr
Jump to navigation
Jump to search
Anarkia777 (talk | contribs) No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{otherlang2 | |||
|en=$selfillum | |||
}} | |||
The [[$selfillum]] [[VMT command]] makes a material glow in the dark. Shaders commonly support this effect. | The [[$selfillum]] [[VMT command]] makes a material glow in the dark. Shaders commonly support this effect. | ||
| Line 22: | Line 25: | ||
; <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. | ||
[[Category:List of Shader Parameters:fr|S]] | |||
[[Category:VMT Lighting:fr]] | |||
[[Category:French]] | |||
Revision as of 16:07, 28 May 2011
Template:Otherlang2 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.
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 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.