$desaturatewithbasealpha: Difference between revisions
Jump to navigation
Jump to search

Note:Also available for use in
and
through
LUX
Bug: [todo tested in ?]
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | {{Source topicon}} | ||
{{Lang|$title={{PAGENAME}}}} | |||
{{ | {{Shaderparam|$desaturatewithbasealpha|since=Alien Swarm|shader1=VertexLitGeneric}}<br> | ||
Setting it to a value above <code>0</code> will enable the behavior.<br> | Setting it to a value above <code>0</code> will enable the behavior.<br> | ||
If used, the {{ | If used, the {{Ent|$basetexture}}'s Alpha channel will be used as a mask to de-saturate the {{Ent|$basetexture}}'s Color.<br> | ||
The amount of desaturation is determined through the same parameter. <code>1.0</code> will result in 100%, and <code>0.5</code> in 50% desaturation.<br> | The amount of desaturation is determined through the same parameter. <code>1.0</code> will result in 100%, and <code>0.5</code> in 50% desaturation.<br> | ||
{{ | {{Todo|Is this available since {{l4d}}?}} | ||
{{ | {{Note|Also available for use in {{src13sp}} and {{src13mp}} through {{lUX|4}}}} | ||
== Caveats == | == Caveats == |
Revision as of 08:19, 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.




Caveats

- Does not work with $seamless_base. (this works in
)
- Does not work with $detail. (this works in
)
- Does not work with $bumpmap or any parameters that requires a $bumpmap. Including $lightwarptexture. (this works in
but not with $phong)
- Does not work with $selfillum and thus $selfillummask (this works in
)
- Does not work with $selfillum_envmapmask_alpha. (this works in
)
- Does not work with $basealphaenvmapmask. (this works in
)
- Does not work with $seamless_base. (this works in
- Template:ModernWarning