diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-02-01 08:56:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-01 08:56:03 +0100 |
| commit | d811f8610223ebceb4796fa82d770c33db1fab6f (patch) | |
| tree | b4155809868106fc40fa091ad8b9580ec61171c2 /doc/classes/VisualShaderNodeIntFunc.xml | |
| parent | fe217efa2c1558eb581229b4e2b06d52eecc65b3 (diff) | |
| parent | de5a8128d7bb79be59fe5138b2e36db0f1bf2b3b (diff) | |
| download | redot-engine-d811f8610223ebceb4796fa82d770c33db1fab6f.tar.gz | |
Merge pull request #45281 from Chaosus/vs_unify
Unified several visual shader nodes
Diffstat (limited to 'doc/classes/VisualShaderNodeIntFunc.xml')
| -rw-r--r-- | doc/classes/VisualShaderNodeIntFunc.xml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/doc/classes/VisualShaderNodeIntFunc.xml b/doc/classes/VisualShaderNodeIntFunc.xml index 5c68c0ec71..a9f4144a01 100644 --- a/doc/classes/VisualShaderNodeIntFunc.xml +++ b/doc/classes/VisualShaderNodeIntFunc.xml @@ -11,7 +11,7 @@ <methods> </methods> <members> - <member name="function" type="int" setter="set_function" getter="get_function" enum="VisualShaderNodeIntFunc.Function" default="3"> + <member name="function" type="int" setter="set_function" getter="get_function" enum="VisualShaderNodeIntFunc.Function" default="2"> A function to be applied to the scalar. See [enum Function] for options. </member> </members> @@ -19,13 +19,10 @@ <constant name="FUNC_ABS" value="0" enum="Function"> Returns the absolute value of the parameter. Translates to [code]abs(x)[/code] in the Godot Shader Language. </constant> - <constant name="FUNC_CLAMP" value="1" enum="Function"> - Constrains a parameter between [code]min[/code] and [code]max[/code]. Translates to [code]clamp(x, min, max)[/code] in the Godot Shader Language. - </constant> - <constant name="FUNC_NEGATE" value="2" enum="Function"> + <constant name="FUNC_NEGATE" value="1" enum="Function"> Negates the [code]x[/code] using [code]-(x)[/code]. </constant> - <constant name="FUNC_SIGN" value="3" enum="Function"> + <constant name="FUNC_SIGN" value="2" enum="Function"> Extracts the sign of the parameter. Translates to [code]sign(x)[/code] in the Godot Shader Language. </constant> </constants> |
