Change the color of the material in the area of the intersection of two meshes

Hello! I’m trying to solve a problem that put me in a stupor. I need to change the color of the material in the area of the intersection of two meshes (disk-cylinders). I have attached a screenshot with an example. It’s easy to just change the color of the entire material, but I need to change the color exactly in the area where these two meshes intersect. The difficulty also lies in the fact that my scene (where these meshes are located) is displayed on a virtual screen via a SceneCapture camera and transferred to a RenderTarget texture that is superimposed on the material. How would you solve this problem?