enter image description hereI have a sphere collider in my Unity scene, and I want to change the color of the areas where this collider touches an object, such as a cube. Specifically, I want the parts of the cube that come into contact with the collider to turn red. The effect should be similar to texture painting, where only the areas affected by the collision are modified, rather than the entire material. How can I achieve this effect where only the material of the cube gets painted or altered in color when the sphere collider interacts with it?
Like this