Syntax
- normalizeUV(uvSet, normalizeMode, normalizeType)
Parameters
- uvSet—floatNumber 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.
- normalizeMode—selector
- uv— Normalizes u and v independently to the full [0, 1] range.
- uvUniform— Normalizes u and v with the same scale factor, preserving aspect ratio.
- u— Normalizes the u axis.
- v— Normalizes the v axis.
- normalizeType—selector
- separatePerFace— Normalizes each face independently. Faces get their own uv entries afterwards.
- collectiveAllFaces— Normalizes the whole uv set together. Shared texture coordinates remain shared.
Description
The normalizeUV operation normalizes the texture coordinates of the given uvSet parameter. Depending on the mode, the texture coordinates are normalized to the [0, 1] range.