From b1411a809cc8c9e683ebc9f44765ef4d854045a4 Mon Sep 17 00:00:00 2001 From: Digvijaysinh Gohil Date: Wed, 10 Apr 2024 18:26:14 +0530 Subject: [PATCH] Artistic nodes documentation updated --- .../Nodes/Artistic/Adjustment/HueNode.md | 13 +++++++++++++ .../Nodes/Artistic/Adjustment/ReplaceColorNode.md | 15 +++++++++++++++ .../Nodes/Artistic/Adjustment/SaturationNode.md | 12 ++++++++++++ .../Nodes/Artistic/Adjustment/WhiteBalanceNode.md | 13 +++++++++++++ .../Nodes/Artistic/Mask/ColorMaskNode.md | 14 ++++++++++++++ 5 files changed, 67 insertions(+) diff --git a/documentation/Nodes/Artistic/Adjustment/HueNode.md b/documentation/Nodes/Artistic/Adjustment/HueNode.md index 12df42b..8d88180 100644 --- a/documentation/Nodes/Artistic/Adjustment/HueNode.md +++ b/documentation/Nodes/Artistic/Adjustment/HueNode.md @@ -17,4 +17,17 @@ Offsets the hue of input in by the amount of input offset`res://addons/ShaderLib/Artistic/Adjustment/Hue.gdshaderinc` + +**Method signature** +
`vec3 hue(input, offset, range_index)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|input|vec3|Input color| +|offset|vec3|Amount of offset hue| +|range_index|int|range index, 0 = use degrees as units, 1 = use radians as units| ___ \ No newline at end of file diff --git a/documentation/Nodes/Artistic/Adjustment/ReplaceColorNode.md b/documentation/Nodes/Artistic/Adjustment/ReplaceColorNode.md index b5d3f78..393ebef 100644 --- a/documentation/Nodes/Artistic/Adjustment/ReplaceColorNode.md +++ b/documentation/Nodes/Artistic/Adjustment/ReplaceColorNode.md @@ -15,4 +15,19 @@ Replaces values in input in equal to input from to t |Name|Type|Binding|Description| |---|---|---|---| |out|vec3|None|Output value| + +**ShaderInc location** +
`res://addons/ShaderLib/Artistic/Adjustment/ReplaceColor.gdshaderinc` + +**Method signature** +
`vec3 replace_color(input, from, to, range, fuzziness)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|input|vec3|Input color| +|from|vec3|Color to replace| +|to|vec3|Color to replace with| +|range|float|Replace colors within this range from input from| +|fuzziness|float|Soften edges around selection| ___ \ No newline at end of file diff --git a/documentation/Nodes/Artistic/Adjustment/SaturationNode.md b/documentation/Nodes/Artistic/Adjustment/SaturationNode.md index 03da4a5..7343ef6 100644 --- a/documentation/Nodes/Artistic/Adjustment/SaturationNode.md +++ b/documentation/Nodes/Artistic/Adjustment/SaturationNode.md @@ -12,4 +12,16 @@ Adjusts the saturation of input in by the amount of input sa |Name|Type|Binding|Description| |---|---|---|---| |out|vec3|None|Output value| + +**ShaderInc location** +
`res://addons/ShaderLib/Artistic/Adjustment/Saturation.gdshaderinc` + +**Method signature** +
`vec3 saturation(input, saturation)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|input|vec3|Input color| +|saturation|float|Saturation value| ___ \ No newline at end of file diff --git a/documentation/Nodes/Artistic/Adjustment/WhiteBalanceNode.md b/documentation/Nodes/Artistic/Adjustment/WhiteBalanceNode.md index 421338b..73367cc 100644 --- a/documentation/Nodes/Artistic/Adjustment/WhiteBalanceNode.md +++ b/documentation/Nodes/Artistic/Adjustment/WhiteBalanceNode.md @@ -13,4 +13,17 @@ Adjusts the temperature and tint of input in by the amount of inpu |Name|Type|Binding|Description| |---|---|---|---| |out|vec3|None|Output value| + +**ShaderInc location** +
`res://addons/ShaderLib/Artistic/Adjustment/WhiteBalance.gdshaderinc` + +**Method signature** +
`vec3 white_balance(input, temperature, tint)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|input|vec3|Input color| +|temperature|float|Temperature offset value| +|tint|float|Tint offset value| ___ \ No newline at end of file diff --git a/documentation/Nodes/Artistic/Mask/ColorMaskNode.md b/documentation/Nodes/Artistic/Mask/ColorMaskNode.md index 9a9d30f..5b21afa 100644 --- a/documentation/Nodes/Artistic/Mask/ColorMaskNode.md +++ b/documentation/Nodes/Artistic/Mask/ColorMaskNode.md @@ -14,4 +14,18 @@ Creates a mask from values in input in equal to input mask c |Name|Type|Binding|Description| |---|---|---|---| |out|vec3|None|Output mask value| + +**ShaderInc location** +
`res://addons/ShaderLib/Artistic/Mask/ColorMask.gdshaderinc` + +**Method signature** +
`vec4 color_mask(input, mask_color, range, fuzziness)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|input|vec3|Input color| +|mask_color|vec3|Color to use for mask| +|range|float|Select colors within this range from input mask color| +|fuzziness|float|Feather edges around selection. Higher values result in a softer selection mask.| ___ \ No newline at end of file