CanvasTexture can receive an imageBitmap (used in workers)
@@ -22,7 +22,7 @@ export class CanvasTexture extends Texture {
* @param [encoding=THREE.LinearEncoding]
*/
constructor(
- canvas: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement,
+ canvas: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap,
mapping?: Mapping,
wrapS?: Wrapping,
wrapT?: Wrapping,