ImageLoader

new ImageLoader(manager?)
THREE: THREE.ImageLoader

Loads images as HTMLImageElement. Only sets crossOrigin on the image when the value is truthy.

Differs from THREE.js

crossOrigin defaults to empty string. Only set on the image when truthy, unlike THREE which always sets 'anonymous'.

Methods

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

Creates an Image element, loads the URL, and passes it to onLoad.