File: ConstNode.md | Updated: 11/15/2025
Class for representing a constant value in the shader.
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 null.
This flag can be used for type testing.
Default is true.
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.