1

I have a basic geo-nodes setup so that I can instance a mesh on particular verts. However, I would like the material of the mesh that I am instancing to use its position to determine what each bulb's color should be, in accordance with the color ramp (and noted by the arrow in the below image):

My attempt at a material

I already know that I can realize instances and join everything to do this. But I'm trying to accomplish this in either the material or the geo-nodes array, if possible, so that I can quickly develop stuff without needing to realize-join-etc.

Thanks in advance for any help you can offer.

DocBadwrench
  • 724
  • 1
  • 9
  • 26

1 Answers1

1

did you try this setup?

enter image description here

i just stretched the values by the map range node.

Chris
  • 59,454
  • 6
  • 30
  • 84
  • I have replicated this node array (for the individual sphere that is being instanced). However, my results are not the same. – DocBadwrench Jun 03 '22 at 17:10