triplanarTextures

Last modified: Jun 20, 2025

TSL function for creating a triplanar textures node.

Can be used for triplanar texture mapping.

material.colorNode = triplanarTexture( texture( diffuseMap ) );
export {}
ParameterTypeDefault Value
textureXNodeNode—
textureYNode?Node—
textureZNode?Node—
scaleNode?Node<float>—
positionNode?Node<vec3>—
normalNode?Node<vec3>—

Returns

Node<vec4>

triplanarTexture

TSL function for creating a triplanar textures node.

ParameterTypeDefault Value
textureXNodeNode—
textureYNode?Node—
textureZNode?Node—
scaleNode?Node<float>—
positionNode?Node<vec3>—
normalNode?Node<vec3>—

Returns

Node<vec4>