1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-20 04:15:58 +08:00
Files
Godot-Shader-Lib/documentation/Nodes/Artistic/Adjustment/SaturationNode.md
2024-07-21 16:39:45 +05:30

27 lines
736 B
Markdown

# Saturation node
Adjusts the saturation of input <b><i>in</i></b> by the amount of input <b><i>saturation</i></b>. A Saturation value of 1 will return the input unaltered. A Saturation value of 0 will return the input completely desaturated.
<hr>
**Inputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|in|vec3|none|Input value|
|saturation|float|none|Saturation value|
**Outputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|out|vec3|None|Output value|
**ShaderInc location**
<br>`res://addons/ShaderLib/Artistic/Artistic.gdshaderinc`
**Method signature**
<br>`vec3 saturation(input, saturation)`
**Parameters**
|Name|Type|Description|
|---|---|---|
|input|vec3|Input color|
|saturation|float|Saturation value|
___