提交 871a5283 编写于 作者: M Mr.doob

Examples: Improved webgl_worker_offscreencanvas.

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