|
|
@@ -443,6 +443,7 @@ export default MaterialNode;
|
|
|
/**
|
|
|
* TSL object that represents alpha test of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialAlphaTest = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.ALPHA_TEST );
|
|
|
@@ -451,6 +452,7 @@ export const materialAlphaTest = /*@__PURE__*/ nodeImmutable( MaterialNode, Mate
|
|
|
* TSL object that represents the diffuse color of the current material.
|
|
|
* The value is composed via `color` * `map`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec3>}
|
|
|
*/
|
|
|
export const materialColor = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.COLOR );
|
|
|
@@ -458,6 +460,7 @@ export const materialColor = /*@__PURE__*/ nodeImmutable( MaterialNode, Material
|
|
|
/**
|
|
|
* TSL object that represents the shininess of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialShininess = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.SHININESS );
|
|
|
@@ -466,6 +469,7 @@ export const materialShininess = /*@__PURE__*/ nodeImmutable( MaterialNode, Mate
|
|
|
* TSL object that represents the emissive color of the current material.
|
|
|
* The value is composed via `emissive` * `emissiveIntensity` * `emissiveMap`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec3>}
|
|
|
*/
|
|
|
export const materialEmissive = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.EMISSIVE );
|
|
|
@@ -474,6 +478,7 @@ export const materialEmissive = /*@__PURE__*/ nodeImmutable( MaterialNode, Mater
|
|
|
* TSL object that represents the opacity of the current material.
|
|
|
* The value is composed via `opacity` * `alphaMap`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialOpacity = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.OPACITY );
|
|
|
@@ -481,6 +486,7 @@ export const materialOpacity = /*@__PURE__*/ nodeImmutable( MaterialNode, Materi
|
|
|
/**
|
|
|
* TSL object that represents the specular of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec3>}
|
|
|
*/
|
|
|
export const materialSpecular = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.SPECULAR );
|
|
|
@@ -489,6 +495,7 @@ export const materialSpecular = /*@__PURE__*/ nodeImmutable( MaterialNode, Mater
|
|
|
* TSL object that represents the specular intensity of the current material.
|
|
|
* The value is composed via `specularIntensity` * `specularMap.a`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialSpecularIntensity = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.SPECULAR_INTENSITY );
|
|
|
@@ -497,6 +504,7 @@ export const materialSpecularIntensity = /*@__PURE__*/ nodeImmutable( MaterialNo
|
|
|
* TSL object that represents the specular color of the current material.
|
|
|
* The value is composed via `specularColor` * `specularMap.rgb`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec3>}
|
|
|
*/
|
|
|
export const materialSpecularColor = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.SPECULAR_COLOR );
|
|
|
@@ -505,6 +513,7 @@ export const materialSpecularColor = /*@__PURE__*/ nodeImmutable( MaterialNode,
|
|
|
* TSL object that represents the specular strength of the current material.
|
|
|
* The value is composed via `specularMap.r`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialSpecularStrength = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.SPECULAR_STRENGTH );
|
|
|
@@ -512,6 +521,7 @@ export const materialSpecularStrength = /*@__PURE__*/ nodeImmutable( MaterialNod
|
|
|
/**
|
|
|
* TSL object that represents the reflectivity of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialReflectivity = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.REFLECTIVITY );
|
|
|
@@ -520,6 +530,7 @@ export const materialReflectivity = /*@__PURE__*/ nodeImmutable( MaterialNode, M
|
|
|
* TSL object that represents the roughness of the current material.
|
|
|
* The value is composed via `roughness` * `roughnessMap.g`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialRoughness = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.ROUGHNESS );
|
|
|
@@ -528,6 +539,7 @@ export const materialRoughness = /*@__PURE__*/ nodeImmutable( MaterialNode, Mate
|
|
|
* TSL object that represents the metalness of the current material.
|
|
|
* The value is composed via `metalness` * `metalnessMap.b`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialMetalness = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.METALNESS );
|
|
|
@@ -536,6 +548,7 @@ export const materialMetalness = /*@__PURE__*/ nodeImmutable( MaterialNode, Mate
|
|
|
* TSL object that represents the normal of the current material.
|
|
|
* The value will be either `normalMap` * `normalScale`, `bumpMap` * `bumpScale` or `normalView`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec3>}
|
|
|
*/
|
|
|
export const materialNormal = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.NORMAL );
|
|
|
@@ -544,6 +557,7 @@ export const materialNormal = /*@__PURE__*/ nodeImmutable( MaterialNode, Materia
|
|
|
* TSL object that represents the clearcoat of the current material.
|
|
|
* The value is composed via `clearcoat` * `clearcoatMap.r`
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialClearcoat = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.CLEARCOAT );
|
|
|
@@ -552,6 +566,7 @@ export const materialClearcoat = /*@__PURE__*/ nodeImmutable( MaterialNode, Mate
|
|
|
* TSL object that represents the clearcoat roughness of the current material.
|
|
|
* The value is composed via `clearcoatRoughness` * `clearcoatRoughnessMap.r`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialClearcoatRoughness = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.CLEARCOAT_ROUGHNESS );
|
|
|
@@ -560,6 +575,7 @@ export const materialClearcoatRoughness = /*@__PURE__*/ nodeImmutable( MaterialN
|
|
|
* TSL object that represents the clearcoat normal of the current material.
|
|
|
* The value will be either `clearcoatNormalMap` or `normalView`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec3>}
|
|
|
*/
|
|
|
export const materialClearcoatNormal = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.CLEARCOAT_NORMAL );
|
|
|
@@ -567,6 +583,7 @@ export const materialClearcoatNormal = /*@__PURE__*/ nodeImmutable( MaterialNode
|
|
|
/**
|
|
|
* TSL object that represents the rotation of the current sprite material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialRotation = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.ROTATION );
|
|
|
@@ -575,6 +592,7 @@ export const materialRotation = /*@__PURE__*/ nodeImmutable( MaterialNode, Mater
|
|
|
* TSL object that represents the sheen color of the current material.
|
|
|
* The value is composed via `sheen` * `sheenColor` * `sheenColorMap`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec3>}
|
|
|
*/
|
|
|
export const materialSheen = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.SHEEN );
|
|
|
@@ -583,6 +601,7 @@ export const materialSheen = /*@__PURE__*/ nodeImmutable( MaterialNode, Material
|
|
|
* TSL object that represents the sheen roughness of the current material.
|
|
|
* The value is composed via `sheenRoughness` * `sheenRoughnessMap.a`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialSheenRoughness = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.SHEEN_ROUGHNESS );
|
|
|
@@ -590,6 +609,7 @@ export const materialSheenRoughness = /*@__PURE__*/ nodeImmutable( MaterialNode,
|
|
|
/**
|
|
|
* TSL object that represents the anisotropy of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec2>}
|
|
|
*/
|
|
|
export const materialAnisotropy = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.ANISOTROPY );
|
|
|
@@ -597,6 +617,7 @@ export const materialAnisotropy = /*@__PURE__*/ nodeImmutable( MaterialNode, Mat
|
|
|
/**
|
|
|
* TSL object that represents the iridescence of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialIridescence = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.IRIDESCENCE );
|
|
|
@@ -604,6 +625,7 @@ export const materialIridescence = /*@__PURE__*/ nodeImmutable( MaterialNode, Ma
|
|
|
/**
|
|
|
* TSL object that represents the iridescence IOR of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialIridescenceIOR = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.IRIDESCENCE_IOR );
|
|
|
@@ -611,6 +633,7 @@ export const materialIridescenceIOR = /*@__PURE__*/ nodeImmutable( MaterialNode,
|
|
|
/**
|
|
|
* TSL object that represents the iridescence thickness of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialIridescenceThickness = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.IRIDESCENCE_THICKNESS );
|
|
|
@@ -619,6 +642,7 @@ export const materialIridescenceThickness = /*@__PURE__*/ nodeImmutable( Materia
|
|
|
* TSL object that represents the transmission of the current material.
|
|
|
* The value is composed via `transmission` * `transmissionMap.r`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialTransmission = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.TRANSMISSION );
|
|
|
@@ -627,6 +651,7 @@ export const materialTransmission = /*@__PURE__*/ nodeImmutable( MaterialNode, M
|
|
|
* TSL object that represents the thickness of the current material.
|
|
|
* The value is composed via `thickness` * `thicknessMap.g`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialThickness = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.THICKNESS );
|
|
|
@@ -634,6 +659,7 @@ export const materialThickness = /*@__PURE__*/ nodeImmutable( MaterialNode, Mate
|
|
|
/**
|
|
|
* TSL object that represents the IOR of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialIOR = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.IOR );
|
|
|
@@ -641,6 +667,7 @@ export const materialIOR = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNo
|
|
|
/**
|
|
|
* TSL object that represents the attenuation distance of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialAttenuationDistance = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.ATTENUATION_DISTANCE );
|
|
|
@@ -648,6 +675,7 @@ export const materialAttenuationDistance = /*@__PURE__*/ nodeImmutable( Material
|
|
|
/**
|
|
|
* TSL object that represents the attenuation color of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec3>}
|
|
|
*/
|
|
|
export const materialAttenuationColor = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.ATTENUATION_COLOR );
|
|
|
@@ -655,6 +683,7 @@ export const materialAttenuationColor = /*@__PURE__*/ nodeImmutable( MaterialNod
|
|
|
/**
|
|
|
* TSL object that represents the scale of the current dashed line material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialLineScale = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.LINE_SCALE );
|
|
|
@@ -662,6 +691,7 @@ export const materialLineScale = /*@__PURE__*/ nodeImmutable( MaterialNode, Mate
|
|
|
/**
|
|
|
* TSL object that represents the dash size of the current dashed line material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialLineDashSize = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.LINE_DASH_SIZE );
|
|
|
@@ -669,6 +699,7 @@ export const materialLineDashSize = /*@__PURE__*/ nodeImmutable( MaterialNode, M
|
|
|
/**
|
|
|
* TSL object that represents the gap size of the current dashed line material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialLineGapSize = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.LINE_GAP_SIZE );
|
|
|
@@ -676,6 +707,7 @@ export const materialLineGapSize = /*@__PURE__*/ nodeImmutable( MaterialNode, Ma
|
|
|
/**
|
|
|
* TSL object that represents the line width of the current line material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialLineWidth = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.LINE_WIDTH );
|
|
|
@@ -683,6 +715,7 @@ export const materialLineWidth = /*@__PURE__*/ nodeImmutable( MaterialNode, Mate
|
|
|
/**
|
|
|
* TSL object that represents the dash offset of the current line material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialLineDashOffset = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.LINE_DASH_OFFSET );
|
|
|
@@ -690,6 +723,7 @@ export const materialLineDashOffset = /*@__PURE__*/ nodeImmutable( MaterialNode,
|
|
|
/**
|
|
|
* TSL object that represents the point size of the current points material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialPointSize = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.POINT_SIZE );
|
|
|
@@ -697,6 +731,7 @@ export const materialPointSize = /*@__PURE__*/ nodeImmutable( MaterialNode, Mate
|
|
|
/**
|
|
|
* TSL object that represents the dispersion of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialDispersion = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.DISPERSION );
|
|
|
@@ -705,6 +740,7 @@ export const materialDispersion = /*@__PURE__*/ nodeImmutable( MaterialNode, Mat
|
|
|
* TSL object that represents the light map of the current material.
|
|
|
* The value is composed via `lightMapIntensity` * `lightMap.rgb`.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec3>}
|
|
|
*/
|
|
|
export const materialLightMap = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.LIGHT_MAP );
|
|
|
@@ -713,6 +749,7 @@ export const materialLightMap = /*@__PURE__*/ nodeImmutable( MaterialNode, Mater
|
|
|
* TSL object that represents the ambient occlusion map of the current material.
|
|
|
* The value is composed via `aoMap.r` - 1 * `aoMapIntensity` + 1.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<float>}
|
|
|
*/
|
|
|
export const materialAO = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNode.AO );
|
|
|
@@ -720,6 +757,7 @@ export const materialAO = /*@__PURE__*/ nodeImmutable( MaterialNode, MaterialNod
|
|
|
/**
|
|
|
* TSL object that represents the anisotropy vector of the current material.
|
|
|
*
|
|
|
+ * @tsl
|
|
|
* @type {Node<vec2>}
|
|
|
*/
|
|
|
export const materialAnisotropyVector = /*@__PURE__*/ uniform( new Vector2() ).onReference( function ( frame ) {
|