Class reference

VisualShaderNodeFloatOp

Inherits VisualShaderNode

A floating-point scalar operator to be used within the visual shader graph.

Description

Applies operator to two floating-point inputs: a and b.

Properties

int operator = 0

An operator to be applied to the inputs.

Constants

OP_ADD = 0

Enum: Operator

Sums two numbers using a + b.

OP_SUB = 1

Enum: Operator

Subtracts two numbers using a - b.

OP_MUL = 2

Enum: Operator

Multiplies two numbers using a * b.

OP_DIV = 3

Enum: Operator

Divides two numbers using a / b.

OP_MOD = 4

Enum: Operator

Calculates the remainder of two numbers. Translates to mod(a, b) in the Redot Shader Language.

OP_POW = 5

Enum: Operator

Raises the a to the power of b. Translates to pow(a, b) in the Redot Shader Language.

OP_MAX = 6

Enum: Operator

Returns the greater of two numbers. Translates to max(a, b) in the Redot Shader Language.

OP_MIN = 7

Enum: Operator

Returns the lesser of two numbers. Translates to min(a, b) in the Redot Shader Language.

OP_ATAN2 = 8

Enum: Operator

Returns the arc-tangent of the parameters. Translates to atan(a, b) in the Redot Shader Language.

OP_STEP = 9

Enum: Operator

Generates a step function by comparing b(x) to a(edge). Returns 0.0 if x is smaller than edge and otherwise 1.0. Translates to step(a, b) in the Redot Shader Language.

OP_ENUM_SIZE = 10

Enum: Operator

Represents the size of the Operator enum.

Source revision 5592dc3a7a61
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.