Class TextureLoader

A texture loader that supports request headers(e.g. for Authorization)

Hierarchy

  • TextureLoader

Constructors

Methods

Constructors

Methods

  • Load an image from url and create a texture

    Parameters

    • url: string

      URL to the image

    • Optional requestHeaders: RequestHeaders

      Optional request headers to load image(e.g. Authorization)

    • Optional abortSignal: AbortSignal

      Optional AbortSignal to cancel the load.

    • crossOrigin: boolean = true

      Enable/disable CORS

    Returns Promise<Texture>

Generated using TypeDoc