You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Push HSV2RGB/RGB2HSV to ColorFunc (from VecFunc) in visual shaders
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user