From fd97b9396d9d46c424369f12a8625d3e0e078a13 Mon Sep 17 00:00:00 2001
From: Alexandros Gounis <gounisalex@gmail.com>
Date: Wed, 20 Jan 2021 16:21:54 +0000
Subject: [PATCH] adds imageBitmap type to CanvasTexture that can be used in
 workers

---
 src/textures/CanvasTexture.d.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/textures/CanvasTexture.d.ts b/src/textures/CanvasTexture.d.ts
index 31ab8d884f666a..8a04dc4ed89178 100644
--- a/src/textures/CanvasTexture.d.ts
+++ b/src/textures/CanvasTexture.d.ts
@@ -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,