Change texture of an object?

Hello.

As you may know, there was a game called CrashDay, it is about crashing and destroying cars. One of the features of that game is visible when you hit your car to an other object. When you hit it, the “faces” of polygons of the car that collided with the object, get another texture, here is a photo of what I’m taking about:

How recreating such an effect is possible?

You can use a shader that reads the vertex colors of the mesh to determine what texture to use for that part of the mesh.
Then you can set the vertex colors via a script when the car was damaged.

Is it possible to paint vertexes via script on the OnCollision() function?