Skip to content

Commit

Permalink
Merge pull request #21120 from AlexandrosGounis/dev
Browse files Browse the repository at this point in the history
CanvasTexture can receive an imageBitmap (used in workers)
  • Loading branch information
mrdoob authored Jan 20, 2021
2 parents af8b3c6 + fd97b93 commit 0025183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textures/CanvasTexture.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0025183

Please sign in to comment.