$desaturatewithbasealpha
Jump to navigation
Jump to search
![English (en) English (en)](/w/images/3/37/Flag-en.png)
Note:Also available for use in
and
through
LUX
Bug:This Parameter does not work with
Warning:Using the Basetexture's Alpha channel for other effects at the same time might result in unexpected behavior!
![English (en) English (en)](/w/images/3/37/Flag-en.png)
![Translate (Translate) Translate (Translate)](/w/images/a/a8/Flag-Translate.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
![Wikipedia icon](/w/images/thumb/9/9a/Wikipedia_icon_small.png/16px-Wikipedia_icon_small.png)
![Wikipedia icon](/w/images/thumb/9/9a/Wikipedia_icon_small.png/16px-Wikipedia_icon_small.png)
![Wikipedia icon](/w/images/thumb/9/9a/Wikipedia_icon_small.png/16px-Wikipedia_icon_small.png)
January 2024
$desaturatewithbasealpha
is a material shader parameter for the VertexLitGeneric shader available in all Source games since
Alien Swarm.
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 works in
)
- $detail. (this works in
)
- $bumpmap or any parameters that requires a $bumpmap. Including $lightwarptexture. (this works in
)
- $selfillum and thus $selfillummask (this works in
)
- $selfillum_envmapmask_alpha. (this works in
)
- $basealphaenvmapmask. (this works in
) [todo tested in ?]
![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)