Hierarchy (View Summary)

Constructors

Properties

_costumeResolution: BitmapResolution
_id: number
_renderer: RenderWebGL
_rotationCenter: V3
_silhouette: Silhouette
_texture: null | WebGLTexture
_textureSize: [number, number]
_uniforms: { u_skin: null | WebGLTexture; u_skinSize: [number, number] }

Accessors

Methods

  • Always returns the middle of the skin (size / 2). No relation to Skin._rotationCenter or Skin.rotationCenter.

    Returns [number, number]

  • Returns { u_skin: null | WebGLTexture; u_skinSize: [number, number] }

  • Synchronously update the content of the skin.

    Parameters

    • image: BitmapData

      The new image.

    • OptionalbitmapResolution: BitmapResolution

      Defaults to 2.

    • OptionalrotationCenter: [number, number]

      Defaults to the center of the image.

    Returns void