equirectUV

Last modified: Jun 9, 2026

TSL function for creating an equirect uv node.

Can be used to compute texture coordinates for projecting an equirectangular texture onto a mesh for using it as the scene’s background.

scene.backgroundNode = texture( equirectTexture, equirectUV() );
export {}
ParameterTypeDefault Value
direction?Node<vec3>

Returns

Node<vec2>
N E W

equirectDirection

TSL function for creating an equirect direction node.

Can be used to compute a direction vector from the given equirectangular UV coordinates.

ParameterTypeDefault Value
uv?Node<vec2>

Returns

Node<vec3>