$selfillum: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
The [[$selfillum]] [[VMT command]] uses the [[alpha channel]] of the [[$basetexture]] to set minumum clamps on the lighting, making it seem like the material glows in the dark.
The [[$selfillum]] [[VMT command]] uses the [[alpha channel]] of the [[$basetexture]] to set minumum clamps on the lighting, making it seem like the material glows in the dark.
* For the texture's alpha channel, a value of ''255'' means 100% self-illumination, while an alpha value of ''0'' means 0% self-illumination.
* Alternatively, for Dx9 only, see [[$selfillum_envmapmask_alpha]] to use the alpha channel of the [[$envmapmask]] VTF for the luminosity map.
==VMT syntax example==
  "[[LightmappedGeneric]]"
  "[[LightmappedGeneric]]"
  {
  {
Line 7: Line 8:
     "[[$surfaceprop]]" "glass"
     "[[$surfaceprop]]" "glass"
  }
  }
* For the texture's alpha channel, a value of ''255'' means 100% self-illumination, while an alpha value of ''0'' means 0% self-illumination.
==Additional Parameters==


==$selfillumtint==
===$selfillumtint===
The [[$selfillumtint]] [[VMT command]] is used to adjust the color of [[$selfillum]].
The [[$selfillumtint]] [[VMT command]] is used to adjust the color of [[$selfillum]].
  "$selfillumtint" {{todo|values?}}
  "$selfillumtint" {{todo|values?}}
==See Also==
*[[$selfillum_envmapmask_alpha]]




[[Category:List of Shader Parameters]]
[[Category:List of Shader Parameters]]
[[Category:VMT Lighting]]
[[Category:VMT Lighting]]

Revision as of 15:13, 5 April 2008

The $selfillum VMT command uses the alpha channel of the $basetexture to set minumum clamps on the lighting, making it seem like the material glows in the dark.

VMT syntax example

"LightmappedGeneric"
{
    "$basetexture" "props/tvscreen005a"
    "$selfillum" "1"
    "$surfaceprop" "glass"
}
  • For the texture's alpha channel, a value of 255 means 100% self-illumination, while an alpha value of 0 means 0% self-illumination.

Additional Parameters

$selfillumtint

The $selfillumtint VMT command is used to adjust the color of $selfillum.

"$selfillumtint"

Todo: values?

See Also