VisualShaderNodeIntFunc
Inherits: VisualShaderNode < Resource < RefCounted < Object
Description
Section titled “Description”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.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| Function | function |
2 |
Enumerations
Section titled “Enumerations”Function
enum Function
FUNC_ABS = 0
Returns the absolute value of the parameter. Translates to abs(x) in the Orblit Shader Language.
FUNC_NEGATE = 1
Negates the x using -(x).
FUNC_SIGN = 2
Extracts the sign of the parameter. Translates to sign(x) in the Orblit Shader Language.
FUNC_BITWISE_NOT = 3
Returns the result of bitwise NOT operation on the integer. Translates to ~a in the Orblit Shader Language.
FUNC_MAX = 4
Represents the size of the Function enum.
Property descriptions
Section titled “Property descriptions”function
Function function = 2
A function to be applied to the scalar.
