Fr/$selfillum: Difference between revisions

From Valve Developer Community
< Fr
Jump to navigation Jump to search
m (Nesciuse moved page $selfillum/fr to Fr/$selfillum over redirect: Language prefixes)
m (-Using L template for links)
Line 1: Line 1:
{{langsp}}
{{langsp}}
{{translate}}
{{translate}}
The [[$selfillum]] [[VMT command]] makes a material glow in the dark. Shaders commonly support this effect.
The {{L|$selfillum}} {{L|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 <code>[[$basetexture]]</code>, but there are other options (see below). Wherever the mask is located, white areas are self-illuminated while black areas are not.
The effect is masked by default by the {{L|alpha channel}} of <code>{{L|$basetexture}}</code>, 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==
==VMT syntax example==


  $selfillum <[[bool]]>
  $selfillum <{{L|bool}}>


  [[LightmappedGeneric]]
  {{L|LightmappedGeneric}}
  {
  {
     [[$basetexture]] props/tvscreen005a
     {{L|$basetexture}} props/tvscreen005a
     '''$selfillum 1'''
     '''$selfillum 1'''
     [[$surfaceprop]] glass
     {{L|$surfaceprop}} glass
  }
  }


==Additional parameters==
==Additional parameters==


; <code>$selfillumtint <[[RGB]] matrix></code>
; <code>$selfillumtint <{{L|RGB}} matrix></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>
: 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 <{{L|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>{{L|$envmapmask}}</code>. Requires DirectX 9.


[[Category:List of Shader Parameters:fr|S]]
[[Category:List of Shader Parameters:fr|S]]
[[Category:VMT Lighting:fr]]
[[Category:VMT Lighting:fr]]
[[Category:French]]
[[Category:French]]

Revision as of 08:42, 11 July 2024

English (en)Français (fr)Translate (Translate)
Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.(en)

The $selfillum(en) VMT command(en) makes a material glow in the dark. Shaders commonly support this effect.

The effect is masked by default by the alpha channel(en) of $basetexture(en), 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(en)>
LightmappedGeneric(en)
{
    $basetexture(en) props/tvscreen005a
    $selfillum 1
    $surfaceprop(en) glass
}

Additional parameters

$selfillumtint <RGB(en) 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(en)>
Has the material derive its self-illumination mask from the alpha channel of the $envmapmask(en). Requires DirectX 9.