А эту хренотень
var geometry = new THREE.CubeGeometry( 100, 300, 5 );
for ( var i = 0; i < geometry.faces.length; i += 2 ) {
var hex = Math.random() * 0xffffff;
geometry.faces[ i ].color.setHex( hex );
geometry.faces[ i + 1 ].color.setHex( hex );
}
var geometry1 = new THREE.CubeGeometry( 100, 300, 5 );
for ( var i = 0; i < geometry.faces.length; i += 2 ) {
var hex = Math.random() * 0xffffff;
geometry.faces[ i ].color.setHex( hex );
geometry.faces[ i + 1 ].color.setHex( hex );
}
var geometry2 = new THREE.CubeGeometry( 100, 300, 5 );
for ( var i = 0; i < geometry.faces.length; i += 2 ) {
var hex = Math.random() * 0xffffff;
geometry2.faces[ i ].color.setHex( hex );
geometry2.faces[ i + 1 ].color.setHex( hex );
}
удали