Is there a way to do this with material nodes only?

I can find a particle info node:


But the object info node doesn't have an input... the texture coordinate node does have an input for a different object, but then I can't find the distance node:



1 Answer 1


The distance node is part of the (kinda-deprecated) texture node editor, which is different from the shader node editor. To get the distance between two locations, use a vector Math node set to Distance.

enter image description here

Result :

enter image description here

Note : The shader should go on the particle object, not on the instancer.

  • 1
    $\begingroup$ Superb! Easier than I thought, but impossible for me as a beginner to figure out on my own (especially with apparently outdated documentation). Thank you so much! :) $\endgroup$
    – eobet
    May 19, 2020 at 14:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .