Documentation / @ripl/3d / textureTransformUV
Function: textureTransformUV() ​
textureTransformUV(
texture,uv):Vector2
Defined in: 3d/src/core/texture.ts:263
Applies a texture's repeat and offset to a raw surface coordinate.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
texture | Texture | The texture whose transform to apply. |
uv | Vector2 | The surface coordinate. |
Returns ​
The transformed coordinate, before wrapping.