Define the KHR_texture_transform extension textures infos options.

interface GLTFTextureTransform {
    offset?: [number, number];
    rotation?: number;
    scale?: [number, number];
    texCoord?: number;
}

Properties

offset?: [number, number]

The offset of the UV coordinate origin as a factor of the texture dimensions. Default to [0.0, 0.0].

rotation?: number

Rotate the UVs by this many radians counter-clockwise around the origin. This is equivalent to a similar rotation of the image clockwise. Default to 0.

scale?: [number, number]

The scale factor applied to the components of the UV coordinates. Default to [1.0, 1.0].

texCoord?: number

Overrides the textureInfo texCoord value if supplied, and if this extension is supported.