瀏覽代碼

Texture resizing: remove image flipping

Merwan Achibet 6 年之前
父節點
當前提交
508085d56e
共有 1 個文件被更改,包括 0 次插入10 次删除
  1. 0 10
      src/renderers/webgl/WebGLTextures.js

+ 0 - 10
src/renderers/webgl/WebGLTextures.js

@@ -59,16 +59,6 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 				canvas.height = height;
 
 				var context = canvas.getContext( '2d' );
-
-				// ImageBitmap is flipped vertically
-
-				if ( useOffscreenCanvas ) {
-
-					context.translate( 0, height );
-					context.scale( 1, - 1 );
-
-				}
-
 				context.drawImage( image, 0, 0, width, height );
 
 				console.warn( 'THREE.WebGLRenderer: Texture has been resized from (' + image.width + 'x' + image.height + ') to (' + width + 'x' + height + ').' );