2018-07-26 09:56:21 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2021-04-26 11:14:51 +00:00
|
|
|
<class name="VisualShaderNodeVectorOp" inherits="VisualShaderNode" version="3.4">
|
2018-07-26 09:56:21 +00:00
|
|
|
<brief_description>
|
2020-05-07 09:19:23 +00:00
|
|
|
A vector operator to be used within the visual shader graph.
|
2018-07-26 09:56:21 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2020-05-07 09:19:23 +00:00
|
|
|
A visual shader node for use of vector operators. Operates on vector [code]a[/code] and vector [code]b[/code].
|
2018-07-26 09:56:21 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="operator" type="int" setter="set_operator" getter="get_operator" enum="VisualShaderNodeVectorOp.Operator" default="0">
|
2020-05-07 09:19:23 +00:00
|
|
|
The operator to be used. See [enum Operator] for options.
|
2018-07-26 09:56:21 +00:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
<constant name="OP_ADD" value="0" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Adds two vectors.
|
2018-07-26 09:56:21 +00:00
|
|
|
</constant>
|
|
|
|
<constant name="OP_SUB" value="1" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Subtracts a vector from a vector.
|
2018-07-26 09:56:21 +00:00
|
|
|
</constant>
|
|
|
|
<constant name="OP_MUL" value="2" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Multiplies two vectors.
|
2018-07-26 09:56:21 +00:00
|
|
|
</constant>
|
|
|
|
<constant name="OP_DIV" value="3" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Divides vector by vector.
|
2018-07-26 09:56:21 +00:00
|
|
|
</constant>
|
|
|
|
<constant name="OP_MOD" value="4" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Returns the remainder of the two vectors.
|
2018-07-26 09:56:21 +00:00
|
|
|
</constant>
|
|
|
|
<constant name="OP_POW" value="5" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Returns the value of the first parameter raised to the power of the second, for each component of the vectors.
|
2018-07-26 09:56:21 +00:00
|
|
|
</constant>
|
|
|
|
<constant name="OP_MAX" value="6" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Returns the greater of two values, for each component of the vectors.
|
2018-07-26 09:56:21 +00:00
|
|
|
</constant>
|
|
|
|
<constant name="OP_MIN" value="7" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Returns the lesser of two values, for each component of the vectors.
|
2018-07-26 09:56:21 +00:00
|
|
|
</constant>
|
|
|
|
<constant name="OP_CROSS" value="8" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Calculates the cross product of two vectors.
|
2018-07-26 09:56:21 +00:00
|
|
|
</constant>
|
2019-04-15 12:49:41 +00:00
|
|
|
<constant name="OP_ATAN2" value="9" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Returns the arc-tangent of the parameters.
|
2019-04-15 12:49:41 +00:00
|
|
|
</constant>
|
|
|
|
<constant name="OP_REFLECT" value="10" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Returns the vector that points in the direction of reflection. [code]a[/code] is incident vector and [code]b[/code] is the normal vector.
|
2019-04-15 12:49:41 +00:00
|
|
|
</constant>
|
|
|
|
<constant name="OP_STEP" value="11" enum="Operator">
|
2020-05-07 09:19:23 +00:00
|
|
|
Vector step operator. Returns [code]0.0[/code] if [code]a[/code] is smaller than [code]b[/code] and [code]1.0[/code] otherwise.
|
2019-04-15 12:49:41 +00:00
|
|
|
</constant>
|
2018-07-26 09:56:21 +00:00
|
|
|
</constants>
|
|
|
|
</class>
|