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 {}| Parameter | Type | Default Value |
|---|---|---|
| dirNode? | Node<vec3> | — |
Returns
Node<vec2>