Represents the data Source of a texture.

Constructors

Properties

Accessors

Methods

Constructors

  • Create a new instance of Source

    Parameters

    • data: any

      The data definition of a texture. Default null

    Returns external.three.Source

Properties

data: any

The actual data of a texture.

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

id: number
isSource

Flag to check if a given object is of type Source.

This is a constant value

true

uuid: string

UUID of this object instance.

This gets automatically assigned and shouldn't be edited.

version: number

This starts at 0 and counts how many times .needsUpdate is set to true.

Expects a Integer

0

Accessors

  • set needsUpdate(value): 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

    • Optionalmeta: string | {}

      Optional object containing metadata.

    Returns {}