Class MipAbstract

A version of a texture used for rendering at different sizes.

Hierarchy

Constructors

  • Creates a mip.

    Parameters

    • Optional source: MipSource

      The pixel source of the mip.

    • internalFormat: TextureInternalFormat = TextureInternalFormat.RGBA

      The format of the color components in the mip.

    • dims: (undefined | number)[] = []

      The dimensions of the mip.

    Returns Mip

Properties

dimsPrivate: readonly (undefined | number)[]

The dimensions of this mip.

formatPrivate: undefined | TextureBaseFormat

The format of the texel data in this mip.

internalFormatPrivate: TextureInternalFormat

The format of the color components in this mip.

lodPrivate?: number

The level of detail of this mip.

needsUpdate: boolean

Whether this mip requires an update.

sourcePrivate: MipSource

The source data of this mip.

targetPrivate?: MipmapTarget

The target of this mip.

texturePrivate?: Texture<Mip>

The texture of this mip.

typePrivate: undefined | TextureDataType

The data type of the components in this mip.

unpackAlignment?: 2 | 1 | 4 | 8

The unpack alignment of this mip.

Accessors

  • get dims(): readonly (undefined | number)[]
  • The dimensions of this mip.

    Returns readonly (undefined | number)[]

  • set dims(value): void
  • The dimensions of this mip.

    Parameters

    • value: readonly (undefined | number)[]

    Returns void

  • get lod(): undefined | number
  • The level of detail of this mip.

    Returns undefined | number

Methods

  • Updates this mip.

    Parameters

    • texture: Texture<Mip>

      The texture of this mip.

    • target: MipmapTarget

      The target of this mip.

    • lod: number

      The level of detail of this mip.

    Returns boolean

    Whether an update was performed.

  • Updates this mip.

    Parameters

    • texture: Texture<Mip>

      The texture of this mip.

    • target: MipmapTarget

      The target of this mip.

    • lod: number

      The level of detail of this mip.

    Returns void

Generated using TypeDoc