最近项目要用threejs,遇到一个问题不能解决。通过
new THREE.BoxGeometry(2, 2, 2);
创建出的平面贴纹理没有问题,
THREE.ImageUtils.loadTexture(“url”);
...
//成功
后来自定义了一些平面、几何体,
var verticesTest = [...];
var faceTest = [...];
var geomTest = new THREE.Geometry();
geomTest.vertices = verticesTest;
geomTest.faces = faceTest;
geomTest.computeFaceNormals();
geomTest.mergeVertices();
THREE.ImageUtils.loadTexture(“url”);
...
//失败
求大神来帮忙解答,十分感谢。