diff --git a/build/three.js b/build/three.js index 4cd8772ad90d416aa382ebd9310d3efb7bdc9de7..24752fed9f52e59e4a24348f51b1c737fea7ea7b 100644 --- a/build/three.js +++ b/build/three.js @@ -30385,6 +30385,8 @@ Object.assign( ImageLoader.prototype, { + crossOrigin: 'Anonymous', + load: function ( url, onLoad, onProgress, onError ) { if ( url === undefined ) url = ''; @@ -30482,6 +30484,8 @@ Object.assign( CubeTextureLoader.prototype, { + crossOrigin: 'Anonymous', + load: function ( urls, onLoad, onProgress, onError ) { var texture = new CubeTexture(); @@ -30550,6 +30554,8 @@ Object.assign( TextureLoader.prototype, { + crossOrigin: 'Anonymous', + load: function ( url, onLoad, onProgress, onError ) { var loader = new ImageLoader( this.manager ); diff --git a/build/three.min.js b/build/three.min.js index 398428e0afa13d777c94381153fc78d74ef37f10..c96a8174a2852ede0f0d19848ed1328b67d5c26f 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -640,23 +640,23 @@ c&&p.addEventListener("progress",function(a){c(a)},!1);p.addEventListener("error a;return this},setResponseType:function(a){this.responseType=a;return this},setWithCredentials:function(a){this.withCredentials=a;return this},setMimeType:function(a){this.mimeType=a;return this},setRequestHeader:function(a){this.requestHeader=a;return this}});Object.assign(Te.prototype,{load:function(a,b,c,d){function e(e){l.load(a[e],function(a){a=g._parser(a,!0);h[e]={width:a.width,height:a.height,format:a.format,mipmaps:a.mipmaps};f+=1;6===f&&(1===a.mipmapCount&&(k.minFilter=1006),k.format=a.format, k.needsUpdate=!0,b&&b(k))},c,d)}var f,g=this,h=[],k=new Mb;k.image=h;var l=new Ja(this.manager);l.setPath(this.path);l.setResponseType("arraybuffer");if(Array.isArray(a))for(var m=f=0,n=a.length;m=e)break a;else{f=b[1];a=e)break b}d=c;c=0}}for(;c>>1,a=e)break a;else{f=b[1];a=e)break b}d=c;c=0}}for(;c>>1,ab;)--f;++f;if(0!==e||f!==d)e>=f&&(f=Math.max(f,1),e=f-1),a=this.getValueSize(),this.times=oa.arraySlice(c,e,f),this.values=oa.arraySlice(this.values,e*a,f*a);return this},validate:function(){var a=!0,b=this.getValueSize();0!==b-Math.floor(b)&&(console.error("THREE.KeyframeTrackPrototype: Invalid value size in track.",this),a=!1);var c= diff --git a/build/three.module.js b/build/three.module.js index bc810d9d7e76860570715447d81f2c9fa2d942b8..90a71b23b6c37e24629a2c9afc65360c92e9fe0f 100644 --- a/build/three.module.js +++ b/build/three.module.js @@ -30379,6 +30379,8 @@ function ImageLoader( manager ) { Object.assign( ImageLoader.prototype, { + crossOrigin: 'Anonymous', + load: function ( url, onLoad, onProgress, onError ) { if ( url === undefined ) url = ''; @@ -30476,6 +30478,8 @@ function CubeTextureLoader( manager ) { Object.assign( CubeTextureLoader.prototype, { + crossOrigin: 'Anonymous', + load: function ( urls, onLoad, onProgress, onError ) { var texture = new CubeTexture(); @@ -30544,6 +30548,8 @@ function TextureLoader( manager ) { Object.assign( TextureLoader.prototype, { + crossOrigin: 'Anonymous', + load: function ( url, onLoad, onProgress, onError ) { var loader = new ImageLoader( this.manager );