Color Interpolation for object surface

Ehsan M.A. 2 years ago in Question • updated by anonymous 1 month ago 2

I have a mesh, say for example a triangle with three corners p1, p2 and p3.

i want to create a gradient that cause for example color C1 in P1 corner of triangle, C2 in P2 corner and C3 in P3 corner. Please note that C1 and C2 and C3 are different.

Any idea on how to do it?