Class: TextureTransform

PIXI.extras. TextureTransform

class controls uv transform and frame clamp for texture

new PIXI.extras.TextureTransform(texture, clampMargin)

Name Type Description
texture PIXI.Texture

observed texture

clampMargin number optional

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

Members

clampMarginnumber

Changes frame clamping
Works with TilingSprite and Mesh
Change to -0.5 to add a pixel to the edge, recommended for transparent trimmed textures in atlas

Default Value:
  • 0.5

clampOffsetnumber

Changes frame clamping
Works with TilingSprite and Mesh
Change to 1.5 if you texture has repeated right and bottom lines, that leads to smoother borders

Default Value:
  • 0

texturePIXI.Texture

texture property

Methods

update(forceUpdate)

updates matrices if texture was changed

Name Type Description
forceUpdate boolean

if true, matrices will be updated any case