translateUV operation

Syntax

  • translateUV(uvSet, uOffset, vOffset)

Parameters

  1. uvSetfloat
    Number 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. uOffsetfloat
    How much to translate in u direction.
  3. vOffsetfloat
    How 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).

Related


In this topic