Constructor
new ConstNode( value : any, nodeType : string )
Constructs a new input node.
| value |
The value of this node. Usually a JS primitive or three.js object (vector, matrix, color). |
| nodeType |
The node type. If no explicit type is defined, the node tries to derive the type from its value. Default is |
Properties
.isConstNode : boolean (readonly)
This flag can be used for type testing.
Default is true.
Methods
.generateConst( builder : NodeBuilder ) : string
Generates the shader string of the value with the current node builder.
| builder |
The current node builder. |
- Returns: The generated value as a shader string.