提交 b7ad25ae 编写于 作者: M Mr.doob

Merge pull request #7559 from makc/patch-1

replace ImageUtils with TextureLoader in VRMLLoader
......@@ -44,14 +44,15 @@ THREE.VRMLLoader.prototype = {
this.crossOrigin = value;
THREE.ImageUtils.crossOrigin = value;
},
parse: function ( data ) {
var texturePath = this.texturePath || '';
var textureLoader = new THREE.TextureLoader( this.manager );
textureLoader.setCrossOrigin( this.crossOrigin );
var parseV1 = function ( lines, scene ) {
console.warn( 'VRML V1.0 not supported yet' );
......@@ -929,7 +930,7 @@ THREE.VRMLLoader.prototype = {
parent.material.name = textureName[ 1 ];
parent.material.map = THREE.ImageUtils.loadTexture (texturePath + textureName[ 1 ]);
parent.material.map = textureLoader.load( texturePath + textureName[ 1 ] );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册