Capítulo 423 de 859
Base class for representing data input nodes.
Constructor
| Signature |
|---|
new InputNode( value : any, nodeType : string ) |
Properties
| Property | Description |
|---|---|
.isInputNode : boolean (readonly) | This flag can be used for type testing. |
| `.precision : 'low' | 'medium' |
.value : any | The value of this node. This can be any JS primitive, functions, array buffers or even three.js objects (vector, matrices, colors). |
Methods
| Method | Description |
|---|---|
.getInputType( builder : NodeBuilder ) : string | Returns the input type of the node which is by default the node type. Derived modules might overwrite this method and use a fixed type or compute one analytically. |
| `.setPrecision( precision : 'low' | 'medium' |