Constructor
new UniformNode( value : any, nodeType : string )
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 |
Properties
.groupNode : UniformGroupNode
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.
.isUniformNode : boolean (readonly)
This flag can be used for type testing.
Default is true.
Methods
.getGroup() : UniformGroupNode
Returns the UniformNode#groupNode.
- Returns: The uniform group.
.getUniformHash( builder : NodeBuilder ) : string
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.
.label( name : string ) : UniformNode
Sets the UniformNode#name property.
| name |
The name of the uniform. |
- Deprecated: Yes
- Returns: A reference to this node.
.setGroup( group : UniformGroupNode ) : UniformNode
Sets the UniformNode#groupNode property.
| group |
The uniform group. |
- Returns: A reference to this node.
.setName( name : string ) : UniformNode
Sets the UniformNode#name property.
| name |
The name of the uniform. |
- Returns: A reference to this node.