Capítulo 432 de 859
This node is a special type of reference node which is intended for linking material properties with node values.
When changing material.opacity, the node value of opacityNode will automatically be updated.
const opacityNode = materialReference( 'opacity', 'float', material );
Constructor
| Signature |
|---|
new MaterialReferenceNode( property : string, inputType : string, material : Material ) |
Properties
| Property | Description |
|---|---|
.isMaterialReferenceNode : boolean (readonly) | This flag can be used for type testing. |
.material : Material | The material the property belongs to. When no material is set, the node refers to the material of the current rendered object. |
Methods
| Method | Description |
|---|---|
| `.updateReference( state : NodeFrame | NodeBuilder ) : Object` |