Is it possible for a material to sample the color of the nearest objects completely in the shader?

I want the color of the 1st object to blend and overlap onto the second object’s color based on its distance. I’ve been using the DistanceToNearestSurface Node for distance detection. I don’t know if a node exist that can sample the color of the nearest material based on normal face? I want to be able to add texture samples at a later point. Been looking through the unreal documentation can’t find anything like this. I have images that snow a little bit of what I want. any tips are appreciated! This is my first time on the forum. Thanks.