Class reference

VisualShaderNodeCompare

Inherits VisualShaderNode

A comparison function for common types within the visual shader graph.

Description

Compares a and b of type by function. Returns a boolean scalar. Translates to if instruction in shader code.

Properties

int function = 0

A comparison function.

int type = 0

The type to be used in the comparison.

Constants

CTYPE_SCALAR = 0

Enum: ComparisonType

A floating-point scalar.

CTYPE_SCALAR_INT = 1

Enum: ComparisonType

An integer scalar.

CTYPE_SCALAR_UINT = 2

Enum: ComparisonType

An unsigned integer scalar.

CTYPE_VECTOR_2D = 3

Enum: ComparisonType

A 2D vector type.

CTYPE_VECTOR_3D = 4

Enum: ComparisonType

A 3D vector type.

CTYPE_VECTOR_4D = 5

Enum: ComparisonType

A 4D vector type.

CTYPE_BOOLEAN = 6

Enum: ComparisonType

A boolean type.

CTYPE_TRANSFORM = 7

Enum: ComparisonType

A transform (mat4) type.

CTYPE_MAX = 8

Enum: ComparisonType

Represents the size of the ComparisonType enum.

FUNC_EQUAL = 0

Enum: Function

Comparison for equality (a == b).

FUNC_NOT_EQUAL = 1

Enum: Function

Comparison for inequality (a != b).

FUNC_MAX = 6

Enum: Function

Represents the size of the Function enum.

COND_ALL = 0

Enum: Condition

The result will be true if all components in the vector satisfy the comparison condition.

COND_ANY = 1

Enum: Condition

The result will be true if any component in the vector satisfies the comparison condition.

COND_MAX = 2

Enum: Condition

Represents the size of the Condition 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.