A scalar integer function to be used within the visual shader graph.
Accept an integer scalar (x) to the input port and transform it according to function.
FUNC_ABS = 0Returns the absolute value of the parameter. Translates to abs(x) in the Godot Shader Language.
FUNC_NEGATE = 1Negates the x using -(x).
FUNC_SIGN = 2Extracts the sign of the parameter. Translates to sign(x) in the Godot Shader Language.
FUNC_BITWISE_NOT = 3Returns the result of bitwise NOT operation on the integer. Translates to ~a in the Godot Shader Language.
FUNC_MAX = 4Represents the size of the Function enum.