Constructor
new MaterialReferenceNode( property : string, inputType : string, material : Material )
Constructs a new material reference node.
| property |
The name of the property the node refers to. |
| inputType |
The uniform type that should be used to represent the property value. |
| material |
The material the property belongs to. When no material is set, the node refers to the material of the current rendered object. Default is |
Properties
.isMaterialReferenceNode : boolean (readonly)
This flag can be used for type testing.
Default is true.
.material : Material
The material the property belongs to. When no material is set, the node refers to the material of the current rendered object.
Default is null.
Methods
.updateReference( state : NodeFrame | NodeBuilder ) : Object
Updates the reference based on the given state. The state is only evaluated MaterialReferenceNode#material is not set.
| state |
The current state. |
- Overrides: ReferenceNode#updateReference
- Returns: The updated reference.