GLTFExporter: Support for textures using OffscreenCanvas
@@ -795,6 +795,7 @@ THREE.GLTFExporter.prototype = {
if ( ( typeof HTMLImageElement !== 'undefined' && image instanceof HTMLImageElement ) ||
( typeof HTMLCanvasElement !== 'undefined' && image instanceof HTMLCanvasElement ) ||
+ ( typeof OffscreenCanvas !== 'undefined' && image instanceof OffscreenCanvas ) ||
( typeof ImageBitmap !== 'undefined' && image instanceof ImageBitmap ) ) {
ctx.drawImage( image, 0, 0, canvas.width, canvas.height );
@@ -818,6 +818,7 @@ GLTFExporter.prototype = {