This article's documentation is for Source. Click here for more information.

$desaturatewithbasealpha

From Valve Developer Community
Jump to: navigation, search

English (en)
... Warning.png

$desaturatewithbasealpha is a material shader parameter available in all Source-16px.png Source games since As-16px.png 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.

Todo:Is this available since L4d-16px.png?
Note.pngNote: Also available for use in Src13sp-16px.png and Src13mp-16px.png through Lux-16px wide.png LUX

Caveats

Bug.png Bug: 
Warning.pngWarning:Using the Basetexture's Alpha channel for other effects at the same time, might result in expected behaviour!