I am trying to make a texture that changes color based on how close one object's geometry is to another. I've faked an example below.
I intend to use this on objects more complicated than planes, so pre-computing distances isn't reasonable. Ideally I'd like to be able to provide a list of objects that the proximity-shader is affected by. In particular, I don't want an object's proximity to itself to affect shading.