Browse Source

Examples: Improved webgl_worker_offscreencanvas.

Mr.doob 6 years ago
parent
commit
871a52832c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/js/offscreen/scene.js

+ 1 - 0
examples/js/offscreen/scene.js

@@ -15,6 +15,7 @@ function init( canvas, width, height, pixelRatio, path ) {
 	// we don't use ImageLoader since it has a DOM dependency (HTML5 image element)
 
 	var loader = new THREE.ImageBitmapLoader().setPath( path );
+	loader.setOptions( { imageOrientation: 'flipY' } );
 	loader.load( 'textures/matcaps/matcap-porcelain-white.jpg', function ( imageBitmap ) {
 
 		var texture = new THREE.CanvasTexture( imageBitmap );