Class for representing a uniform.
Constructor
new UniformNode(value, nodeType?)| Parameter | Type | Default Value |
|---|---|---|
| value | any | — |
| nodeType? | null | string | null |
Constructs a new uniform node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| isUniformNode | boolean | — | |
| groupNode | UniformGroupNode | — | |
| Method | Type | |
|---|---|---|
| setName | (name: string) => UniformNode | |
| label | (name: string) => UniformNode | |
| setGroup | (group: UniformGroupNode) => UniformNode | |
| getGroup | () => UniformGroupNode | |
| getUniformHash | (builder: NodeBuilder) => string | |
| onUpdate | (callback: any, updateType: any) => Node | |
| getInputType | (builder: any) => string | |
| generate | (builder: any, output: any) => any | |
Extends
InputNodeTSL function for creating a uniform node.
| Parameter | Type | Default Value |
|---|---|---|
| value | any | — |
| type? | string | — |
Returns
UniformNode