Capítulo 756 de 859

Chapter 756: NodeUniform

Core Idea

NodeBuilder is going to create instances of this class during the build process of nodes. They represent the final shader uniforms that are going to be generated by the builder. A dictionary of node uniforms is maintained in NodeBuilder#uniforms for this purpose.

Key Concepts

  • groupNode : UniformGroupNode: The uniform node's group.
  • id : number: The id of the uniform node.
  • isNodeUniform : boolean (readonly): This flag can be used for type testing.
  • name : string: The name of the uniform.
  • node : UniformNode: An reference to the node.
  • type : string: The type of the uniform.
  • value : any: The value of the uniform node.

Reference Tables

Constructor

Signature
new NodeUniform( name : string, type : string, node : UniformNode )

Properties

PropertyDescription
.groupNode : UniformGroupNodeThe uniform node's group.
.id : numberThe id of the uniform node.
.isNodeUniform : boolean (readonly)This flag can be used for type testing.
.name : stringThe name of the uniform.
.node : UniformNodeAn reference to the node.
.type : stringThe type of the uniform.
.value : anyThe value of the uniform node.

Key Takeaways

  1. Most relevant properties: groupNode, id, isNodeUniform, name.

Connects To