translateUV

Syntax

  • translateUV(uvSet, uOffset, vOffset)

Parameters

  1. uvSetfloatNumber of texture coordinates set (integer number in [0,9]) . The numbering corresponds to the texture layers of the material attribute, see also texturing: essential knowledge.
  2. uOffsetfloatHow much to translate in u direction.
  3. vOffsetfloatHow much to translate in v direction.

Description

The translateUV operation translates the corresponding texture layer by adding uOffset and vOffset to each of its texture coordinates. For example, to move the texture to the right by half of the width, use translateUV(0,0.5,0). 

Was this article helpful?