Is it possible to apply different materials to each face of a THREE.OctahedronGeometry? I have successfully done this with box objects, but when I try with THREE.OctahedronGeometry, I only see the first material on all faces. How can I achieve this with different materials on each face?
var geometry = new THREE.OctahedronGeometry(1, 0);
var materials = [
new THREE.MeshPhongMaterial( { color: 0x050505, dithering: true } ),
new THREE.MeshPhongMaterial( { color: 0xeeeeee, dithering: true } ),
new THREE.MeshPhongMaterial( { color: 0x060606, dithering: true } ),
new THREE.MeshPhongMaterial( { color: 0xeeeeee, dithering: true } ),
new THREE.MeshPhongMaterial( { color: 0x050505, dithering: true } ),
new THREE.MeshPhongMaterial( { color: 0xeeeeee, dithering: true } ),
new THREE.MeshPhongMaterial( { color: 0x070707, dithering: true } ),
new THREE.MeshPhongMaterial( { color: 0xeeeeee, dithering: true } )
];
var someMesh = new THREE.SceneUtils.createMultiMaterialObject( geometry , materials );
someMesh.castShadow = true; //default is false
someMesh.receiveShadow = true; //default
scene.add( someMesh );