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.

Remarks

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

id: number
isSource: true

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

Remarks

This is a constant value

Default Value

true

uuid: string

UUID of this object instance.

Remarks

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.

Remarks

Expects a Integer

Default Value

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

    • Optional meta: string | {}

      Optional object containing metadata.

    Returns {}