|
@@ -21,6 +21,7 @@ Object.assign( TextureLoader.prototype, {
|
|
|
|
|
|
var loader = new ImageLoader( this.manager );
|
|
var loader = new ImageLoader( this.manager );
|
|
loader.setCrossOrigin( this.crossOrigin );
|
|
loader.setCrossOrigin( this.crossOrigin );
|
|
|
|
+ loader.setWithCredentials( this.withCredentials );
|
|
loader.setPath( this.path );
|
|
loader.setPath( this.path );
|
|
loader.load( url, function ( image ) {
|
|
loader.load( url, function ( image ) {
|
|
|
|
|
|
@@ -50,6 +51,13 @@ Object.assign( TextureLoader.prototype, {
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ setWithCredentials: function ( value ) {
|
|
|
|
+
|
|
|
|
+ this.withCredentials = value;
|
|
|
|
+ return this;
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+
|
|
setPath: function ( value ) {
|
|
setPath: function ( value ) {
|
|
|
|
|
|
this.path = value;
|
|
this.path = value;
|
|
@@ -57,6 +65,8 @@ Object.assign( TextureLoader.prototype, {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
|