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 b.
OP_ADD = 0Adds two vectors.
OP_SUB = 1Subtracts a vector from a vector.
OP_MUL = 2Multiplies two vectors.
OP_DIV = 3Divides vector by vector.
OP_MOD = 4Returns the remainder of the two vectors.
OP_POW = 5Returns the value of the first parameter raised to the power of the second, for each component of the vectors.
OP_MAX = 6Returns the greater of two values, for each component of the vectors.
OP_MIN = 7Returns the lesser of two values, for each component of the vectors.
OP_CROSS = 8Calculates the cross product of two vectors.
OP_ATAN2 = 9Returns the arc-tangent of the parameters.
OP_REFLECT = 10Returns the vector that points in the direction of reflection. a is incident vector and b is the normal vector.
OP_STEP = 11Vector step operator. Returns 0.0 if a is smaller than b and 1.0 otherwise.
OP_ENUM_SIZE = 12Represents the size of the Operator enum.