Capítulo 504 de 859
Class for representing a uniform.
Constructor
| Signature |
|---|
new UniformNode( value : any, nodeType : string ) |
Properties
| Property | Description |
|---|---|
.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. |
.name : string | The name or label of the uniform. |
Methods
| Method | Description |
|---|---|
.getGroup() : UniformGroupNode | Returns the UniformNode#groupNode. |
.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. |
.label( name : string ) : UniformNode | Sets the UniformNode#name property. |
.setGroup( group : UniformGroupNode ) : UniformNode | Sets the UniformNode#groupNode property. |
.setName( name : string ) : UniformNode | Sets the UniformNode#name property. |