What is your performance cost when changing runtime materials to physically interacting objects?

I have implemented a verlet integration system and I need to change the color of the lines according to the pressure applied to this section. And I have a question here, what would work better as relevant points and lines, HISM, procedural mesh, or something else? And won’t changing materials during simulation have a big impact on performance?

Something like there: UE4 soft body simulation - YouTube

Doesn’t really matter to performance if you make the material right.
(No textures, simple color variable)

The real cost is in keeping textures in memory.
Shading something a different color is almost trivial.