-2
我想在与three.sj 3D LIBRAIRIE立方体纹理应用,但它不到风度的作品,我没有找到我的错误。 我成功应用在后台而不是在立方体上一个计划,我不知道为什么WebGL的纹理不工作
var material = new THREE.MeshLambertMaterial({
map: THREE.ImageUtils.loadTexture('assets/images/texture/ciel.jpg')
});
var cube = new THREE.Mesh(new THREE.CubeGeometry(200, 200, 200), material);
cube.overdraw = true;
cube.rotation.x = Math.PI * 0.1;
scene.add(cube);