File: PropertyNode.md | Updated: 11/15/2025
This class represents a shader property. It can be used to explicitly define a property and assign a value to it.
PropertyNode is used by the engine to predefined common material properties for TSL code.
const threshold = property( 'float', 'threshold' ).assign( THRESHOLD );
Constructs a new property node.
nodeType | The type of the node.
---|---
name | The name of the property in the shader. Default is null.
varying | Whether this property is a varying or not. Default is false.
This flag is used for global cache.
Default is true.
Overrides: Node#global
This flag can be used for type testing.
Default is true.
The name of the property in the shader. If no name is defined, the node system auto-generates one.
Default is null.
Overrides: Node#name
Whether this property is a varying or not.
Default is false.