Cycles, shade based on proximity to another object's geometry 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.
Dynamic Paint is the perfect tool for what you're trying to achieve.Here you find all information on the topic you nead.In case from some reason this tutorial will disappear,I'm talking about this: