我必须使用纹理应用obj文件,我需要将我的新纹理合并到现有的obj中。我用了以下代码
var materialArray = [];
materialArray.push(new THREE.MeshPhongMaterial({
map: THREE.ImageUtils.loadTexture('admin/assets/overcoat/shadows/Coat_2_3_Lapel_Shd.png'),
transparent: true,
opacity: 1,
polygonOffset: false
}));
var mesh1 = THREE.SceneUtils.createMultiMaterialObject(geometry, materialArray);
mesh1.scale = new THREE.Vector3(6, 6, 6);
mesh1.position.y -= 2.5;
SceneService.scene.add(mesh1);
任何人都帮我隐藏这条线。