Represents the data source of a texture.

Hierarchy

  • Source

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • Optional data: any

      The data definition of a texture. default is null.

    Returns Source

Properties

data: any

The actual data of a texture. The type of this property depends on the texture that uses this instance.

isTexture: true
uuid: string

UUID of this object instance. This gets automatically assigned, so this shouldn't be edited.

version: number

This starts at 0 and counts how many times [property:Boolean needsUpdate] is set to true.

Accessors

  • set needsUpdate(value: boolean): void
  • Set this to true to trigger a data upload to the GPU next time the source is used.

    Parameters

    • value: boolean

    Returns void

Methods

  • Convert the data source to three.js JSON Object/Scene format.

    Parameters

    • Optional meta: any

      optional object containing metadata.

    Returns any

Generated using TypeDoc