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 |
|---|---|---|
| direction? | Node<vec3> | — |
Returns
Node<vec2>N E W
TSL function for creating an equirect direction node.
Can be used to compute a direction vector from the given equirectangular UV coordinates.
| Parameter | Type | Default Value |
|---|---|---|
| uv? | Node<vec2> | — |
Returns
Node<vec3>