DataTextureLoader

new DataTextureLoader(manager?)
THREE: THREE.DataTextureLoader

Abstract loader for raw pixel data formats. Fetches as ArrayBuffer and delegates to a subclass parse() method.

Differs from THREE.js

parse() is abstract - subclasses must return { data, width, height }.

Methods

MethodDescription
load(url: string, onLoad?: Function, onProgress?: Function, onError?: Function): void

Fetches the URL as an ArrayBuffer, calls parse(), and wraps the result in a DataTexture.