Replaces the default UV coordinates used in texture lookups.
material.contextNode = replaceDefaultUV( ( textureNode ) => {
// ...
return customUVCoordinates;
} );
export {}| Parameter | Type | Default Value |
|---|---|---|
| callback | (arg0: Node) => Node<any> | Node<any> | — |
| node? | Node | null |
Returns
ContextNodeRotates the given uv coordinates around a center point
| Parameter | Type | Default Value |
|---|---|---|
| uv | Node<vec2> | — |
| rotation | Node<float> | — |
| center | Node<vec2> | — |
Returns
Node<vec2>Applies a spherical warping effect to the given uv coordinates.
| Parameter | Type | Default Value |
|---|---|---|
| uv | Node<vec2> | — |
| strength | Node<float> | — |
| center | Node<vec2> | — |
Returns
Node<vec2>