|
@@ -22,6 +22,7 @@ THREE.TGALoader.prototype = {
|
|
|
|
|
|
var loader = new THREE.FileLoader( this.manager );
|
|
|
loader.setResponseType( 'arraybuffer' );
|
|
|
+ loader.setPath( this.path );
|
|
|
|
|
|
loader.load( url, function ( buffer ) {
|
|
|
|
|
@@ -535,6 +536,13 @@ THREE.TGALoader.prototype = {
|
|
|
|
|
|
return canvas;
|
|
|
|
|
|
+ },
|
|
|
+
|
|
|
+ setPath: function ( value ) {
|
|
|
+
|
|
|
+ this.path = value;
|
|
|
+ return this;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
};
|