浏览代码

OffscreenCanvas.js: Fix paths

Mugen87 7 年之前
父节点
当前提交
f80ed745ce
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/js/workers/OffscreenCanvas.js

+ 2 - 2
examples/js/workers/OffscreenCanvas.js

@@ -1,4 +1,4 @@
-self.importScripts( '../../build/three.js' );
+self.importScripts( '../../../build/three.js' );
 
 self.onmessage = function ( message ) {
 
@@ -22,7 +22,7 @@ function init( offscreen, width, height, pixelRatio ) {
 
 	var loader = new THREE.ImageBitmapLoader();
 
-	loader.load( '../textures/crate.gif', function ( imageBitmap ) {
+	loader.load( '../../textures/crate.gif', function ( imageBitmap ) {
 
 		var texture = new THREE.CanvasTexture( imageBitmap );
 		var material = new THREE.MeshBasicMaterial( { map: texture } );