Class reference

VisualShaderNodeIntFunc

Inherits VisualShaderNode

A scalar integer function to be used within the visual shader graph.

Description

Accept an integer scalar (x) to the input port and transform it according to function.

Properties

int function = 2

A function to be applied to the scalar.

Constants

FUNC_ABS = 0

Enum: Function

Returns the absolute value of the parameter. Translates to abs(x) in the Godot Shader Language.

FUNC_NEGATE = 1

Enum: Function

Negates the x using -(x).

FUNC_SIGN = 2

Enum: Function

Extracts the sign of the parameter. Translates to sign(x) in the Godot Shader Language.

FUNC_BITWISE_NOT = 3

Enum: Function

Returns the result of bitwise NOT operation on the integer. Translates to ~a in the Godot Shader Language.

FUNC_MAX = 4

Enum: Function

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