Skip to content

DataTextureLoader

new DataTextureLoader(manager?)

THREE equivalent: 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 }.

Method Description
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.