EventDispatcherNode

AttributeNode

Base class for representing shader attributes as nodes.

Constructor

new AttributeNode( attributeName : string, nodeType : string )

Constructs a new attribute node.

attributeName

The name of the attribute.

nodeType

The node type.

Default is null.

Properties

.global : boolean

AttributeNode sets this property to true by default.

Default is true.

Overrides: Node#global

Methods

.getAttributeName( builder : NodeBuilder ) : string

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.

.setAttributeName( attributeName : string ) : AttributeNode

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.

Source

src/nodes/core/AttributeNode.js