How to colour a mesh according a temperature/heat map?

Hi folks,

I have a mesh and my aim is to color it according a temperature/heat map. Specifically, I have a color value per each centroid of the different triangles in the mesh (the centroid of a triangle is its mean point). Therefore, I’d like to know how to properly color the entire mesh according these values, of course, interpolating between the different color values. Something similar to this effect:


Should I use any particular shader to represent this temperature map?
Thank you very much for your help

Consider having a color per vertex instead of a color per triangle. Then you can use Vertex colors. The following answer has a section on vertex colors: