Explorar o código

Merge pull request #21120 from AlexandrosGounis/dev

CanvasTexture can receive an imageBitmap (used in workers)
Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
0025183a25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,