I have recently started exploring the world of three.js and I am aware that there is a way to color vertices in three.js. However, I am currently researching whether it is possible to implement indexed colors for vertices in three.js or WebGL. Specifically, I am interested in being able to assign colors ranging from blue to yellow to red on a scale based on values given to each vertex. The gradient between two vertices should then follow this scale of indexed colors. This kind of feature could be incredibly useful for visualizing Finite Element Method models.
Do you have any insight or ideas on how one might achieve this?