提交 a91cd165 编写于 作者: M Mugen87

TGALoader: Added .setPath()

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