TextureLoader
new TextureLoader(manager?)
THREE: THREE.TextureLoader
Loads images as Texture instances via ImageBitmapLoader. The loaded texture has needsUpdate already triggered.
Differs from THREE.js
Uses ImageBitmapLoader (fetch + createImageBitmap), not HTMLImageElement. This avoids canvas taint from CORS.
Methods
| Method | Description |
|---|---|
load(url: string, onLoad?: Function, onProgress?: Function, onError?: Function): void | Loads an image, wraps it in a Texture, and passes it to onLoad. |