$desaturatewithbasealpha
![English (en) English (en)](/w/images/3/37/Flag-en.png)
![Underlinked - Logo.png](/w/images/9/91/Underlinked_-_Logo.png)
This article needs more links to other articles to help integrate it into the encyclopedia. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024
January 2024
$desaturatewithbasealpha
is a material shader parameter available in all Source games since
Alien Swarm for
VertexLitGeneric
.
Setting it to a value above 0
will enable the behavior.
If used, the $basetexture
's Alpha channel will be used as a mask to de-saturate the $basetexture
's Color.
The amount of desaturation is determined through the same parameter. 1.0
will result in 100%, and 0.5
in 50% desaturation.
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Source 2013 Singleplayer](/w/images/thumb/e/e1/Src13sp-16px.png/48px-Src13sp-16px.png)
![Source 2013 Multiplayer](/w/images/thumb/1/11/Src13mp-16px.png/48px-Src13mp-16px.png)
![LUX](/w/images/8/87/Lux-16px.png)
Caveats
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
$seamless_base
. (this worksin)
$detail
. (this worksin)
$bumpmap
or any parameters that requires a$bumpmap
. Including$lightwarptexture
. (this worksin)
$selfillum
and thus $selfillummask (this worksin)
$selfillum_envmapmask_alpha
. (this worksin)
$basealphaenvmapmask
. (this worksin)
![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)