Inheritance: EventDispatcher → Node → InputNode →
Class for representing a uniform.
Constructs a new uniform node.
value
The value of this node. Usually a JS primitive or three.js object (vector, matrix, color, texture).
nodeType
The node type. If no explicit type is defined, the node tries to derive the type from its value.
Default is null.
The uniform group of this uniform. By default, uniforms are managed per object but they might belong to a shared group which is updated per frame or render call.
This flag can be used for type testing.
Default is true.
The name or label of the uniform.
Default is ''.
Overrides: InputNode#name
Returns the UniformNode#groupNode.
Returns: The uniform group.
By default, this method returns the result of Node#getHash but derived classes might overwrite this method with a different implementation.
builder
The current node builder.
Returns: The uniform hash.
Sets the UniformNode#name property.
name
The name of the uniform.
Deprecated: Yes
Returns: A reference to this node.
Sets the UniformNode#groupNode property.
group
The uniform group.
Returns: A reference to this node.
Sets the UniformNode#name property.
name
The name of the uniform.
Returns: A reference to this node.