Inheritance: EventDispatcher → Node → TempNode →
This node represents a variety of mathematical methods available in shaders. They are divided into three categories:
sin, cos or normalize.dot, cross or pow.mix, clamp or smoothstep.Constructs a new math node.
method
The method name.
aNode
The first input.
bNode
The second input.
Default is null.
cNode
The third input.
Default is null.
The first input.
The second input.
Default is null.
The third input.
Default is null.
This flag can be used for type testing.
Default is true.
The method name.
The input type is inferred from the node types of the input nodes.
builder
The current node builder.
Returns: The input type.
The selected method as well as the input type determine the node type of this node.
builder
The current node builder.
Overrides: TempNode#getNodeType
Returns: The node type.