Comparison for less than or equal ([code]a < b[/code]). Cannot be used if [member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM].
Comparison for less than or equal ([code]a <= b[/code]). Cannot be used if [member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM].
Returns a value equal to the nearest integer to [code]x[/code] whose absolute value is not larger than the absolute value of [code]x[/code]. Translates to [code]trunc(x)[/code] in the Godot Shader Language.
An operator to be applied to the inputs. See [enum Operator] for options.
</member>
</member>
</members>
</members>
<constants>
<constants>
<constantname="OP_ADD"value="0"enum="Operator">
<constantname="OP_ADD"value="0"enum="Operator">
Sums two numbers using [code]a + b[/code].
</constant>
</constant>
<constantname="OP_SUB"value="1"enum="Operator">
<constantname="OP_SUB"value="1"enum="Operator">
Subtracts two numbers using [code]a - b[/code].
</constant>
</constant>
<constantname="OP_MUL"value="2"enum="Operator">
<constantname="OP_MUL"value="2"enum="Operator">
Multiplies two numbers using [code]a * b[/code].
</constant>
</constant>
<constantname="OP_DIV"value="3"enum="Operator">
<constantname="OP_DIV"value="3"enum="Operator">
Divides two numbers using [code]a / b[/code].
</constant>
</constant>
<constantname="OP_MOD"value="4"enum="Operator">
<constantname="OP_MOD"value="4"enum="Operator">
Calculates the remainder of two numbers. Translates to [code]mod(a, b)[/code] in the Godot Shader Language.
</constant>
</constant>
<constantname="OP_POW"value="5"enum="Operator">
<constantname="OP_POW"value="5"enum="Operator">
Raises the [code]a[/code] to the power of [code]b[/code]. Translates to [code]pow(a, b)[/code] in the Godot Shader Language.
</constant>
</constant>
<constantname="OP_MAX"value="6"enum="Operator">
<constantname="OP_MAX"value="6"enum="Operator">
Returns the greater of two numbers. Translates to [code]max(a, b)[/code] in the Godot Shader Language.
</constant>
</constant>
<constantname="OP_MIN"value="7"enum="Operator">
<constantname="OP_MIN"value="7"enum="Operator">
Returns the lesser of two numbers. Translates to [code]min(a, b)[/code] in the Godot Shader Language.
</constant>
</constant>
<constantname="OP_ATAN2"value="8"enum="Operator">
<constantname="OP_ATAN2"value="8"enum="Operator">
Returns the arc-tangent of the parameters. Translates to [code]atan(a, b)[/code] in the Godot Shader Language.
</constant>
</constant>
<constantname="OP_STEP"value="9"enum="Operator">
<constantname="OP_STEP"value="9"enum="Operator">
Generates a step function by comparing [code]b[/code](x) to [code]a[/code](edge). Returns 0.0 if [code]x[/code] is smaller than [code]edge[/code] and otherwise 1.0. Translates to [code]step(a, b)[/code] in the Godot Shader Language.
Compares two floating-point numbers in order to return a required vector within the visual shader graph.
</brief_description>
</brief_description>
<description>
<description>
First two ports are scalar floatin-point numbers to compare, third is tolerance comparsion amount and last three ports represents a vectors returned if [code]a == b[/code], [code]a > b[/code] and [code]a < b[/code] respectivly.
Represents the input shader parameter within the visual shader graph.
</brief_description>
</brief_description>
<description>
<description>
</description>
</description>
...
@@ -11,16 +12,19 @@
...
@@ -11,16 +12,19 @@
<returntype="String">
<returntype="String">
</return>
</return>
<description>
<description>
Returns a translated name of the current constant in the Godot Shader Language. eg. [code]"ALBEDO"[/code] if the [member input_name] equal to [code]"albedo"[/code].