2012-02-28 10 views

答えて

4

簡単: はここに私のデモです!

var materials = [ 
    new THREE.MeshLambertMaterial({ ambient: 0xffffff, map: THREE.ImageUtils.loadTexture('1.png') }), 
    new THREE.MeshLambertMaterial({ ambient: 0xffffff, map: THREE.ImageUtils.loadTexture('2.png') }), 
    new THREE.MeshLambertMaterial({ ambient: 0xffffff, map: THREE.ImageUtils.loadTexture('3.png') }), 
    new THREE.MeshLambertMaterial({ ambient: 0xffffff, map: THREE.ImageUtils.loadTexture('4.png') }), 
    new THREE.MeshLambertMaterial({ ambient: 0xffffff, map: THREE.ImageUtils.loadTexture('5.png') }), 
    new THREE.MeshLambertMaterial({ ambient: 0xffffff, map: THREE.ImageUtils.loadTexture('6.png') }) 
]; 

var geometry = new THREE.CubeGeometry(80, 80, 80, 3, 3, 3, materials); 
cube = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial()); 
関連する問題