ImageBitmapLoader
new ImageBitmapLoader(manager?)THREE equivalent: THREE.ImageBitmapLoader
Loads images as ImageBitmap via fetch() and createImageBitmap(). Sends Accept: image/* to bypass SPA fallback.
Methods
Section titled “Methods”| Method | Description |
|---|---|
setOptions(options: object): this |
Sets options passed to createImageBitmap(). |
load(url: string, onLoad?: Function, onProgress?: Function, onError?: Function): void |
Fetches the image and passes the ImageBitmap to onLoad. |