Base class for representing shader attributes as nodes.
Constructor
new AttributeNode(attributeName, nodeType?)| Parameter | Type | Default Value |
|---|---|---|
| attributeName | string | — |
| nodeType? | null | string | null |
Constructs a new attribute node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| _attributeName | string | — | |
| Method | Type | |
|---|---|---|
| getHash | (builder: any) => string | |
| generateNodeType | (builder: any) => null | string | |
| setAttributeName | (attributeName: string) => AttributeNode | |
| getAttributeName | () => string | |
| generate | (builder: any) => any | |
| serialize | (data: any) => void | |
| deserialize | (data: any) => void | |
Extends
NodeTSL function for creating an attribute node.
| Parameter | Type | Default Value |
|---|---|---|
| name | string | — |
| nodeType? | null | string | null |
Returns
AttributeNode