I have a mesh that and have set the vertex colors as shown:
var vertColors = MyPolygonProto.polygons[iBorderCounter].polyMesh.geometry.colors;
vertColors[vertCount] = new THREE.Color(finalColor.r, finalColor.g, finalColor.b);
Where polyMesh is a mesh. I'd like to change the colors of the faces based on the geometries.
I was able to implement the technique shown here: How to change face color in Three.js
But it seems like inefficient to have to go over the same vertex multiple times when they are shared by multiple faces. A technique in which each face automatically interpolated it's color based on the color of its vertices as listed in the mesh.geometry.colors array would seem more efficient.
Does this capability exist in Three.js?