An integer scalar operator to be used within the visual shader graph.
Applies operator to two integer inputs: a and b.
OP_ADD = 0Sums two numbers using a + b.
OP_SUB = 1Subtracts two numbers using a - b.
OP_MUL = 2Multiplies two numbers using a * b.
OP_DIV = 3Divides two numbers using a / b.
OP_MOD = 4Calculates the remainder of two numbers using a % b.
OP_MAX = 5Returns the greater of two numbers. Translates to max(a, b) in the Godot Shader Language.
OP_MIN = 6Returns the lesser of two numbers. Translates to max(a, b) in the Godot Shader Language.
OP_BITWISE_AND = 7Returns the result of bitwise AND operation on the integer. Translates to a & b in the Godot Shader Language.
OP_BITWISE_OR = 8Returns the result of bitwise OR operation for two integers. Translates to a | b in the Godot Shader Language.
OP_BITWISE_XOR = 9Returns the result of bitwise XOR operation for two integers. Translates to a ^ b in the Godot Shader Language.
OP_BITWISE_LEFT_SHIFT = 10Returns the result of bitwise left shift operation on the integer. Translates to a << b in the Godot Shader Language.
OP_BITWISE_RIGHT_SHIFT = 11Returns the result of bitwise right shift operation on the integer. Translates to a >> b in the Godot Shader Language.
OP_ENUM_SIZE = 12Represents the size of the Operator enum.