diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-08 10:03:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 10:03:42 +0200 |
commit | d211aff777ec338a5f57cece1c7bf76120d0622d (patch) | |
tree | c7d6a922eb7e7a5dd3995c366848f39c82338220 /modules/visual_script/doc_classes | |
parent | 5a64c679cfc5463afd4a703b1c6e437d894b22b1 (diff) | |
parent | 514a3fb96a6ad97eb9488cacba7143566cb17d27 (diff) |
Merge pull request #27231 from Chaosus/smoothstep
Added smoothstep built-in function
Diffstat (limited to 'modules/visual_script/doc_classes')
-rw-r--r-- | modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml b/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml index dd14d60327..104a90059e 100644 --- a/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml +++ b/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml @@ -204,7 +204,14 @@ <constant name="COLORN" value="62" enum="BuiltinFunc"> Return the [Color] with the given name and alpha ranging from 0 to 1. Note: names are defined in color_names.inc. </constant> - <constant name="FUNC_MAX" value="63" enum="BuiltinFunc"> + <constant name="MATH_SMOOTHSTEP" value="63" enum="BuiltinFunc"> + Return a number smoothly interpolated between the first two inputs, based on the third input. Similar to [code]MATH_LERP[/code], but interpolates faster at the beginning and slower at the end. Using Hermite interpolation formula: + [codeblock] + var t = clamp((weight - from) / (to - from), 0.0, 1.0) + return t * t * (3.0 - 2.0 * t) + [/codeblock] + </constant> + <constant name="FUNC_MAX" value="64" enum="BuiltinFunc"> The maximum value the [member function] property can have. </constant> </constants> |