1 thought on “How to create a custom color for mesh faces

  1. for ( var i = 0; i < geometry.faces.length; i ++ ) {
    
        var face = geometry.faces[ i ];
        face.color.setHex( Math.random() * 0xffffff );
    
    }
    
    var mesh = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { vertexColors: THREE.FaceColors } );

Comments are closed.