فهرست منبع

Merge pull request #20160 from Mugen87/dev44

TGALoader: Fixed flipped textures when using OffscreenCanvas.
Mr.doob 5 سال پیش
والد
کامیت
8258225a06
3فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      examples/js/loaders/TGALoader.js
  2. 1 1
      examples/jsm/loaders/TGALoader.js
  3. BIN
      examples/screenshots/webgl_loader_texture_tga.jpg

+ 1 - 1
examples/js/loaders/TGALoader.js

@@ -536,7 +536,7 @@ THREE.TGALoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 
 		context.putImageData( imageData, 0, 0 );
 
-		return useOffscreen ? canvas.transferToImageBitmap() : canvas;
+		return canvas;
 
 	}
 

+ 1 - 1
examples/jsm/loaders/TGALoader.js

@@ -540,7 +540,7 @@ TGALoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 		context.putImageData( imageData, 0, 0 );
 
-		return useOffscreen ? canvas.transferToImageBitmap() : canvas;
+		return canvas;
 
 	}
 

BIN
examples/screenshots/webgl_loader_texture_tga.jpg