Procházet zdrojové kódy

adds imageBitmap type to CanvasTexture that can be used in workers

Alexandros Gounis před 4 roky
rodič
revize
fd97b9396d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/textures/CanvasTexture.d.ts

+ 1 - 1
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,