This node is a special type of reference node which is intended for linking material properties with node values.
const opacityNode = materialReference( 'opacity', 'float', material );
export {}When changing material.opacity, the node value of opacityNode will
automatically be updated.
Constructor
new MaterialReferenceNode(property, inputType, material?)| Parameter | Type | Default Value |
|---|---|---|
| property | string | — |
| inputType | string | — |
| material? | any | null |
Constructs a new material reference node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| material | any | — | |
| isMaterialReferenceNode | boolean | — | |
| Method | Type | |
|---|---|---|
| updateReference | (state: any) => Object | |
Extends
ReferenceNodeTSL function for creating a material reference node.
| Parameter | Type | Default Value |
|---|---|---|
| name | string | — |
| type | string | — |
| material? | any | null |
Returns
MaterialReferenceNode