Capítulo 504 de 859

Chapter 504: UniformNode

Core Idea

Class for representing a uniform.

Key Concepts

  • 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…
  • isUniformNode : boolean (readonly): This flag can be used for type testing.
  • name : string: The name or label of the uniform.

Reference Tables

Constructor

Signature
new UniformNode( value : any, nodeType : string )

Properties

PropertyDescription
.groupNode : UniformGroupNodeThe 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 : stringThe name or label of the uniform.

Methods

MethodDescription
.getGroup() : UniformGroupNodeReturns the UniformNode#groupNode.
.getUniformHash( builder : NodeBuilder ) : stringBy default, this method returns the result of Node#getHash but derived classes might overwrite this method with a different implementation.
.label( name : string ) : UniformNodeSets the UniformNode#name property.
.setGroup( group : UniformGroupNode ) : UniformNodeSets the UniformNode#groupNode property.
.setName( name : string ) : UniformNodeSets the UniformNode#name property.

Key Takeaways

  1. UniformNode extends: EventDispatcher → Node → InputNode
  2. Most relevant properties: groupNode, isUniformNode, name.
  3. Key methods: getGroup, getUniformHash, label, setGroup.

Connects To