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

$desaturatewithbasealpha: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Basic documentation)
 
mNo edit summary
Line 10: Line 10:
== Caveats ==
== Caveats ==
{{Bug|}}
{{Bug|}}
* Does not work with {{ent|$seamless_base}}{{LUX|addtext=this works|in}}
* Does not work with {{ent|$seamless_base}}{{LUX|in}}
* Does not work with {{ent|$detail}}{{LUX|addtext=this works|in}}
* Does not work with {{ent|$detail}}{{LUX|in}}
* Does not work with {{ent|$bumpmap}} or any parameters that requires a {{ent|$bumpmap}}. Including {{ent|$lightwarptexture}}.{{LUX|addtext=these work. Except {{ent|$phong}}|in}}
* Does not work with {{ent|$bumpmap}} or any parameters that requires a {{ent|$bumpmap}}. Including {{ent|$lightwarptexture}}.{{LUX|in|addtext=but not with {{ent|$phong}}}}
* Does not work with {{ent|$selfillum}} and thus [[Glowing_Textures#.24selfillum|$selfillummask]].{{LUX|addtext=this works|in}}
* Does not work with {{ent|$selfillum}} and thus [[Glowing_Textures#.24selfillum|$selfillummask]].{{LUX|in}}
* Does not work with {{ent|$selfillum_envmapmask_alpha}}{{LUX|addtext=this works|in}}
* Does not work with {{ent|$selfillum_envmapmask_alpha}}{{LUX|in}}
* Does not work with {{ent|$basealphaenvmapmask}}{{LUX|addtext=this works|in}}
* Does not work with {{ent|$basealphaenvmapmask}}{{LUX|in}}
{{ModernWarning|Using the Basetexture's Alpha channel for other effects at the same time, might result in expected behaviour!}}
{{ModernWarning|Using the Basetexture's Alpha channel for other effects at the same time, might result in expected behaviour!}}

Revision as of 06:07, 9 March 2023

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:  [todo tested in ?]

Template:ModernWarning