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.
Constructor
new PropertyNode(nodeType, name?, varying?)| Parameter | Type | Default Value |
|---|---|---|
| nodeType | string | — |
| name? | null | string | null |
| varying? | boolean | false |
Constructs a new property node.
| Accessor | Type | Modifiers |
|---|---|---|
| get type | string | static |
| Method | Type | Modifiers |
|---|---|---|
| customCacheKey | () => number | — |
| getHash | (builder: any) => string | — |
| generate | (builder: any) => any | — |
Extends
Node| Parameter | Type | Default Value |
|---|---|---|
| type | string | — |
| name | undefined | null | string | — |
Returns
PropertyNode| Parameter | Type | Default Value |
|---|---|---|
| type | string | — |
| name | undefined | null | string | — |
Returns
PropertyNodeTSL object that represents the shader variable DiffuseColor.
Type
PropertyNode<vec4>TSL object that represents the shader variable DiffuseContribution.
Type
PropertyNode<vec3>TSL object that represents the shader variable EmissiveColor.
Type
PropertyNode<vec3>TSL object that represents the shader variable Roughness.
Type
PropertyNode<float>TSL object that represents the shader variable Metalness.
Type
PropertyNode<float>TSL object that represents the shader variable Clearcoat.
Type
PropertyNode<float>TSL object that represents the shader variable ClearcoatRoughness.
Type
PropertyNode<float>TSL object that represents the shader variable Sheen.
Type
PropertyNode<vec3>TSL object that represents the shader variable SheenRoughness.
Type
PropertyNode<float>TSL object that represents the shader variable Iridescence.
Type
PropertyNode<float>TSL object that represents the shader variable IridescenceIOR.
Type
PropertyNode<float>TSL object that represents the shader variable IridescenceThickness.
Type
PropertyNode<float>TSL object that represents the shader variable AlphaT.
Type
PropertyNode<float>TSL object that represents the shader variable Anisotropy.
Type
PropertyNode<float>TSL object that represents the shader variable AnisotropyT.
Type
PropertyNode<vec3>TSL object that represents the shader variable AnisotropyB.
Type
PropertyNode<vec3>TSL object that represents the shader variable SpecularColor.
Type
PropertyNode<color>TSL object that represents the shader variable SpecularColorBlended.
Type
PropertyNode<color>TSL object that represents the shader variable SpecularF90.
Type
PropertyNode<float>TSL object that represents the shader variable Shininess.
Type
PropertyNode<float>TSL object that represents the shader variable Output.
Type
PropertyNode<vec4>TSL object that represents the shader variable dashSize.
Type
PropertyNode<float>TSL object that represents the shader variable gapSize.
Type
PropertyNode<float>TSL object that represents the shader variable pointWidth.
Type
PropertyNode<float>TSL object that represents the shader variable IOR.
Type
PropertyNode<float>TSL object that represents the shader variable Transmission.
Type
PropertyNode<float>TSL object that represents the shader variable Thickness.
Type
PropertyNode<float>TSL object that represents the shader variable AttenuationDistance.
Type
PropertyNode<float>TSL object that represents the shader variable AttenuationColor.
Type
PropertyNode<color>TSL object that represents the shader variable Dispersion.
Type
PropertyNode<float>