I would like to make the color of my shaded object change, as an object is near to it or far away.
I am using the distance node, plugging the ObjectPositionWs in the firt slot, but I would like to plug another object in the second slot, another that I can specify manually.
In order to modulate this, I was wondering to use some specific coordinates to use this area of effect, but I could find how to ?
f.e : I want my object -blue- to became slowly green when it is getting closer to specified coordinates (x,y,z). (that I specify, or using some object’s which another shader is)
Thank you for your help !