mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-01-07 01:43:35 +08:00
Artistic nodes documentation updated
This commit is contained in:
parent
7b3fe34b9b
commit
b1411a809c
@ -17,4 +17,17 @@ Offsets the hue of input <b><i>in</i></b> by the amount of input <b><i>offset</i
|
|||||||
|Name|Type|Binding|Description|
|
|Name|Type|Binding|Description|
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
|out|vec3|None|Output value|
|
|out|vec3|None|Output value|
|
||||||
|
|
||||||
|
**ShaderInc location**
|
||||||
|
<br>`res://addons/ShaderLib/Artistic/Adjustment/Hue.gdshaderinc`
|
||||||
|
|
||||||
|
**Method signature**
|
||||||
|
<br>`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|
|
||||||
___
|
___
|
@ -15,4 +15,19 @@ Replaces values in input <b><i>in</i></b> equal to input <b><i>from</i></b> to t
|
|||||||
|Name|Type|Binding|Description|
|
|Name|Type|Binding|Description|
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
|out|vec3|None|Output value|
|
|out|vec3|None|Output value|
|
||||||
|
|
||||||
|
**ShaderInc location**
|
||||||
|
<br>`res://addons/ShaderLib/Artistic/Adjustment/ReplaceColor.gdshaderinc`
|
||||||
|
|
||||||
|
**Method signature**
|
||||||
|
<br>`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 <b><i>from</i></b>|
|
||||||
|
|fuzziness|float|Soften edges around selection|
|
||||||
___
|
___
|
@ -12,4 +12,16 @@ Adjusts the saturation of input <b><i>in</i></b> by the amount of input <b><i>sa
|
|||||||
|Name|Type|Binding|Description|
|
|Name|Type|Binding|Description|
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
|out|vec3|None|Output value|
|
|out|vec3|None|Output value|
|
||||||
|
|
||||||
|
**ShaderInc location**
|
||||||
|
<br>`res://addons/ShaderLib/Artistic/Adjustment/Saturation.gdshaderinc`
|
||||||
|
|
||||||
|
**Method signature**
|
||||||
|
<br>`vec3 saturation(input, saturation)`
|
||||||
|
|
||||||
|
**Parameters**
|
||||||
|
|Name|Type|Description|
|
||||||
|
|---|---|---|
|
||||||
|
|input|vec3|Input color|
|
||||||
|
|saturation|float|Saturation value|
|
||||||
___
|
___
|
@ -13,4 +13,17 @@ Adjusts the temperature and tint of input <b><i>in</i></b> by the amount of inpu
|
|||||||
|Name|Type|Binding|Description|
|
|Name|Type|Binding|Description|
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
|out|vec3|None|Output value|
|
|out|vec3|None|Output value|
|
||||||
|
|
||||||
|
**ShaderInc location**
|
||||||
|
<br>`res://addons/ShaderLib/Artistic/Adjustment/WhiteBalance.gdshaderinc`
|
||||||
|
|
||||||
|
**Method signature**
|
||||||
|
<br>`vec3 white_balance(input, temperature, tint)`
|
||||||
|
|
||||||
|
**Parameters**
|
||||||
|
|Name|Type|Description|
|
||||||
|
|---|---|---|
|
||||||
|
|input|vec3|Input color|
|
||||||
|
|temperature|float|Temperature offset value|
|
||||||
|
|tint|float|Tint offset value|
|
||||||
___
|
___
|
@ -14,4 +14,18 @@ Creates a mask from values in input <b><i>in</i></b> equal to input <b><i>mask c
|
|||||||
|Name|Type|Binding|Description|
|
|Name|Type|Binding|Description|
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
|out|vec3|None|Output mask value|
|
|out|vec3|None|Output mask value|
|
||||||
|
|
||||||
|
**ShaderInc location**
|
||||||
|
<br>`res://addons/ShaderLib/Artistic/Mask/ColorMask.gdshaderinc`
|
||||||
|
|
||||||
|
**Method signature**
|
||||||
|
<br>`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 <b><i>mask color</i></b>|
|
||||||
|
|fuzziness|float|Feather edges around selection. Higher values result in a softer selection mask.|
|
||||||
___
|
___
|
Loading…
x
Reference in New Issue
Block a user