mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-20 04:15:58 +08:00
Color mask node added
This commit is contained in:
17
documentation/Nodes/Artistic/Mask/ColorMaskNode.md
Normal file
17
documentation/Nodes/Artistic/Mask/ColorMaskNode.md
Normal file
@ -0,0 +1,17 @@
|
||||
# Color Mask node
|
||||
Creates a mask from values in input <b><i>in</i></b> equal to input <b><i>mask color</i></b>. Input <b><i>range</i></b> can be used to define a wider range of values around input <b><i>mask color</i></b> to create the mask. Colors within this range will return 1, otherwise the node will return 0. Input <b><i>fuzziness</i></b> can be used to soften the edges around the selection similar to anti-aliasing.
|
||||
<hr>
|
||||
|
||||
**Inputs**
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|in|vec3|none|Input value|
|
||||
|color mask|vec3|none|Color to use for mask|
|
||||
|range|float|none|Select colors within this range from input <b><i>mask color</i></b>|
|
||||
|fuzziness|float|none|Feather edges around selection. Higher values result in a softer selection mask.|
|
||||
|
||||
**Outputs**
|
||||
|Name|Type|Binding|Description|
|
||||
|---|---|---|---|
|
||||
|out|vec3|None|Output mask value|
|
||||
___
|
Reference in New Issue
Block a user