Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Callable

Index

Properties

Texture format.

height: number

Height of texture.

Texture magnification filter.

Texture minification filter.

stats: { size: number }

Type declaration

  • size: number

    Size of the texture in bytes.

Texture data type.

width: number

Width of texture.

Texture wrap mode on S axis.

Texture wrap mode on T axis.

Methods

  • destroy(): void
  • Replaces the part of texture with new data.

    Parameters

    • face: TextureCubeFaceIndex

      index of the face to modify

    • data: TextureImageData

      2D image data object to use for the replacement

    • Optional x: number

      horizontal offset of the image within the face (Default: 0)

    • Optional y: number

      vertical offset of the image within the face (Default: 0)

    • Optional level: number

      mipmap level of the texture to modify (Default: 0)

    Returns TextureCube

Generated using TypeDoc