File: MaterialNode.md | Updated: 11/15/2025
This class should simplify the node access to material properties. It internal uses reference nodes to make sure changes to material properties are automatically reflected to predefined TSL objects like e.g. materialColor.
Constructs a new material node.
scope | The scope defines what kind of material property is referred by the node.
---|---
The scope defines what material property is referred by the node.
Returns a cached reference node for the given property and type.
property | The name of the material property.
---|---
type | The uniform type of the property.
Returns: A material reference node representing the property access.
Returns a color-typed material reference node for the given property name.
property | The name of the material property.
---|---
Returns: A material reference node representing the property access.
Returns a float-typed material reference node for the given property name.
property | The name of the material property.
---|---
Returns: A material reference node representing the property access.
Returns a texture-typed material reference node for the given property name.
property | The name of the material property.
---|---
Returns: A material reference node representing the property access.
The node setup is done depending on the selected scope. Multiple material properties might be grouped into a single node composition if they logically belong together.
builder | The current node builder.
---|---
Overrides: Node#setup
Returns: The node representing the selected scope.