Capítulo 380 de 859

Chapter 380: AttributeNode

Core Idea

Base class for representing shader attributes as nodes.

Key Concepts

  • global : boolean: AttributeNode sets this property to true by default.

Reference Tables

Constructor

Signature
new AttributeNode( attributeName : string, nodeType : string )

Properties

PropertyDescription
.global : booleanAttributeNode sets this property to true by default.

Methods

MethodDescription
.getAttributeName( builder : NodeBuilder ) : stringReturns the attribute name of this node. The method can be overwritten in derived classes if the final name must be computed analytically.
.setAttributeName( attributeName : string ) : AttributeNodeSets the attribute name to the given value. The method can be overwritten in derived classes if the final name must be computed analytically.

Key Takeaways

  1. AttributeNode extends: EventDispatcher → Node
  2. Most relevant properties: global.
  3. Key methods: getAttributeName, setAttributeName.

Connects To