Inheritance: EventDispatcher → Node →
Base class for representing shader attributes as nodes.
Constructs a new attribute node.
attributeName
The name of the attribute.
nodeType
The node type.
Default is null.
AttributeNode sets this property to true by default.
Default is true.
Overrides: Node#global
Returns the attribute name of this node. The method can be overwritten in derived classes if the final name must be computed analytically.
builder
The current node builder.
Returns: The attribute name.
Sets the attribute name to the given value. The method can be overwritten in derived classes if the final name must be computed analytically.
attributeName
The name of the attribute.
Returns: A reference to this node.