Capítulo 456 de 859
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 );
Constructor
| Signature |
|---|
new PropertyNode( nodeType : string, name : string, varying : boolean, placeholderNode : Node ) |
Properties
| Property | Description |
|---|---|
.global : boolean | This flag is used for global cache. |
.isPropertyNode : boolean (readonly) | This flag can be used for type testing. |
.name : string | The name of the property in the shader. If no name is defined, the node system auto-generates one. |
.placeholderNode : Node | The placeholder node of the property if it is not assigned. |
.varying : boolean | Whether this property is a varying or not. |