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

Note:Also available for use in
and
through
LUX
Bug:This Parameter does not work with
Mailmanmicky (talk | contribs) No edit summary |
ShiroDkxtro2 (talk | contribs) m (Minor Adjustment ( Shader -> Parameter and de-caveat regarding LUX)) |
||
Line 10: | Line 10: | ||
== Caveats == | == Caveats == | ||
{{Bug|This | {{Bug|This Parameter does not work with | ||
* {{Ent|$seamless_base}}. {{LUX|in}} | * {{Ent|$seamless_base}}. {{LUX|in}} | ||
* {{Ent|$detail}}. {{LUX|in}} | * {{Ent|$detail}}. {{LUX|in}} | ||
* {{Ent|$bumpmap}} or any parameters that requires a {{Ent|$bumpmap}}. Including {{Ent|$lightwarptexture}}. {{LUX|in | * {{Ent|$bumpmap}} or any parameters that requires a {{Ent|$bumpmap}}. Including {{Ent|$lightwarptexture}}. {{LUX|in}} | ||
* {{Ent|$selfillum}} and thus [[Glowing_Textures#.24selfillum|$selfillummask]] {{LUX|in}} | * {{Ent|$selfillum}} and thus [[Glowing_Textures#.24selfillum|$selfillummask]] {{LUX|in}} | ||
* {{Ent|$selfillum_envmapmask_alpha}}. {{LUX|in}} | * {{Ent|$selfillum_envmapmask_alpha}}. {{LUX|in}} | ||
* {{Ent|$basealphaenvmapmask}}. {{LUX|in}}}} | * {{Ent|$basealphaenvmapmask}}. {{LUX|in}}}} | ||
{{ModernWarning|Using the Basetexture's Alpha channel for other effects at the same time might result in unexpected behavior!}} | {{ModernWarning|Using the Basetexture's Alpha channel for other effects at the same time might result in unexpected behavior!}} |
Revision as of 12:07, 22 September 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

- $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 ?]