How to change a texture of a 3D object upon collision (a certain portion)

I want to visualize this easier, basically 2 cyan balls collide, and their collided parts will change into a red color. How to do this?


Screenshot_2