Hi, how to update faces.color in three js ? my code is :
mesh.geometry.faces.forEach((face, index) => {
face.color = `rgb(${index}, ${index}, ${index})`;
});
mesh.geometry.elementsNeedUpdate = true;
mesh.geometry.colorsNeedUpdate = true;
mesh.geometry.groupsNeedUpdate = true;
but color is not changing…