Skip to content

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 ​

ParameterTypeDescription
textureTextureThe texture whose transform to apply.
uvVector2The surface coordinate.

Returns ​

Vector2

The transformed coordinate, before wrapping.