Class reference

VisualShaderNodeVectorOp

Inherits VisualShaderNodeVectorBase

A vector operator to be used within the visual shader graph.

Description

A visual shader node for use of vector operators. Operates on vector a and vector b.

Properties

int operator = 0

The operator to be used.

Constants

OP_ADD = 0

Enum: Operator

Adds two vectors.

OP_SUB = 1

Enum: Operator

Subtracts a vector from a vector.

OP_MUL = 2

Enum: Operator

Multiplies two vectors.

OP_DIV = 3

Enum: Operator

Divides vector by vector.

OP_MOD = 4

Enum: Operator

Returns the remainder of the two vectors.

OP_POW = 5

Enum: Operator

Returns the value of the first parameter raised to the power of the second, for each component of the vectors.

OP_MAX = 6

Enum: Operator

Returns the greater of two values, for each component of the vectors.

OP_MIN = 7

Enum: Operator

Returns the lesser of two values, for each component of the vectors.

OP_CROSS = 8

Enum: Operator

Calculates the cross product of two vectors.

OP_ATAN2 = 9

Enum: Operator

Returns the arc-tangent of the parameters.

OP_REFLECT = 10

Enum: Operator

Returns the vector that points in the direction of reflection. a is incident vector and b is the normal vector.

OP_STEP = 11

Enum: Operator

Vector step operator. Returns 0.0 if a is smaller than b and 1.0 otherwise.

OP_ENUM_SIZE = 12

Enum: Operator

Represents the size of the Operator enum.

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.