Class: TextureTransform

Tiny. TextureTransform

Class controls uv transform and frame clamp for texture

new Tiny.TextureTransform(texture, clampMargin)

Name Type Description
texture Tiny.Texture

Observed texture

clampMargin number optional

Changes frame clamping, 0.5 by default. Use -0.5 for extra border.

Version:
  • 1.0.2

Members

textureTiny.Texture

texture property

Methods

multiplyUvs(uvs, out){Float32Array}

Multiplies uvs array to transform

Name Type Default Description
uvs Float32Array

mesh uvs

out Float32Array uvs optional

output

Returns:
Type Description
Float32Array output

update(forceUpdate){boolean}

updates matrices if texture was changed

Name Type Description
forceUpdate boolean

if true, matrices will be updated any case

Returns:
Type Description
boolean whether or not it was updated
Documentation generated by JSDoc 3.4.3 on Fri Jul 09 2021 19:32:27 GMT+0800 (CST)