提交 508085d5 编写于 作者: M Merwan Achibet

Texture resizing: remove image flipping

上级 b6d472b8
......@@ -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 + ').' );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册