equirectUV

Last modified: Jun 20, 2025

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
dirNode?Node<vec3>

Returns

Node<vec2>