Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
A vector operator to be used within the visual shader graph.
A visual shader node for use of vector operators. Operates on vector
a and vector
Operator OP_ADD =
Adds two vectors.
Operator OP_SUB =
Subtracts a vector from a vector.
Operator OP_MUL =
Multiplies two vectors.
Operator OP_DIV =
Divides vector by vector.
Operator OP_MOD =
Returns the remainder of the two vectors.
Operator OP_POW =
Returns the value of the first parameter raised to the power of the second, for each component of the vectors.
Operator OP_MAX =
Returns the greater of two values, for each component of the vectors.
Operator OP_MIN =
Returns the lesser of two values, for each component of the vectors.
Operator OP_CROSS =
Calculates the cross product of two vectors.
Operator OP_ATAN2 =
Returns the arc-tangent of the parameters.
Operator OP_REFLECT =
Returns the vector that points in the direction of reflection.
a is incident vector and
b is the normal vector.
Operator OP_STEP =
Vector step operator. Returns
a is smaller than
Operator OP_ENUM_SIZE =
Represents the size of the Operator enum.