summaryrefslogtreecommitdiff
path: root/doc/classes/VisualShaderNodeColorFunc.xml
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2022-05-07 09:49:12 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2022-05-07 09:49:12 +0300
commitee1b7a033db6f4fc844f2ce4c4429115ee030ddd (patch)
tree4fb39f8676903eae6280720e10581826686211b0 /doc/classes/VisualShaderNodeColorFunc.xml
parentbb73dafe377471abcd6661a54e8bf0a2091ac4f2 (diff)
Push `HSV2RGB/RGB2HSV` to `ColorFunc` (from `VecFunc`) in visual shaders
Diffstat (limited to 'doc/classes/VisualShaderNodeColorFunc.xml')
-rw-r--r--doc/classes/VisualShaderNodeColorFunc.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/classes/VisualShaderNodeColorFunc.xml b/doc/classes/VisualShaderNodeColorFunc.xml
index 4a73b1662e..6116e0df68 100644
--- a/doc/classes/VisualShaderNodeColorFunc.xml
+++ b/doc/classes/VisualShaderNodeColorFunc.xml
@@ -24,7 +24,13 @@
return vec3(max3, max3, max3);
[/codeblock]
</constant>
- <constant name="FUNC_SEPIA" value="1" enum="Function">
+ <constant name="FUNC_HSV2RGB" value="1" enum="Function">
+ Converts HSV vector to RGB equivalent.
+ </constant>
+ <constant name="FUNC_RGB2HSV" value="2" enum="Function">
+ Converts RGB vector to HSV equivalent.
+ </constant>
+ <constant name="FUNC_SEPIA" value="3" enum="Function">
Applies sepia tone effect using the following formula:
[codeblock]
vec3 c = input;
@@ -34,7 +40,7 @@
return vec3(r, g, b);
[/codeblock]
</constant>
- <constant name="FUNC_MAX" value="2" enum="Function">
+ <constant name="FUNC_MAX" value="4" enum="Function">
Represents the size of the [enum Function] enum.
</constant>
</constants>