From 514a3fb96a6ad97eb9488cacba7143566cb17d27 Mon Sep 17 00:00:00 2001 From: Chaosus Date: Tue, 19 Mar 2019 14:39:43 +0300 Subject: Added smoothstep built-in function --- modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/visual_script/doc_classes') diff --git a/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml b/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml index 3a1d773058..a1bec2afda 100644 --- a/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml +++ b/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml @@ -204,7 +204,14 @@ Return the [Color] with the given name and alpha ranging from 0 to 1. Note: names are defined in color_names.inc. - + + 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] + + The maximum value the [member function] property can have. -- cgit v1.2.3