Capítulo 433 de 859
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.Constructor
| Signature |
|---|
new MathNode( method : string, aNode : Node, bNode : Node, cNode : Node ) |
Properties
| Property | Description |
|---|---|
.aNode : Node | The first input. |
.bNode : Node | The second input. |
.cNode : Node | The third input. |
.isMathNode : boolean (readonly) | This flag can be used for type testing. |
.method : string | The method name. |
Methods
| Method | Description |
|---|---|
.generateNodeType( builder : NodeBuilder ) : string | The selected method as well as the input type determine the node type of this node. |
.getInputType( builder : NodeBuilder ) : string | The input type is inferred from the node types of the input nodes. |