This article's documentation is for anything that uses the Source engine. Click here for more information.

$desaturatewithbasealpha

From Valve Developer Community
Revision as of 03:11, 12 July 2024 by Nesciuse (talk | contribs) (Nesciuse moved page $desaturatewithbasealpha/en to $desaturatewithbasealpha without leaving a redirect: Move en subpage to basepage)
Jump to navigation Jump to search
English (en)Translate (Translate)
Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

Template:Shaderparam
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.

Todo: Is this available since Left 4 Dead?
Note.pngNote:Also available for use in Source 2013 Singleplayer and Source 2013 Multiplayer through LUX LUX

Caveats

Icon-Bug.pngBug:This Parameter does not work with
Warning.pngWarning:Using the Basetexture's Alpha channel for other effects at the same time might result in unexpected behavior!