2
$\begingroup$

I have an instance called 'Eye' with two differents materials. I need to be able to change the color of the material 'R white' with Geometry Nodes. In the image the white color of the fundus of the eye.

How can I change the color without comparing the index of each face?

The eye

Thanks for your help :)

$\endgroup$

2 Answers 2

3
$\begingroup$

enter image description here

You can use "replace material" node for that.

Hope it helps. Have fun!

or this is also possible:

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ This way is very easy to use. Thanks Chris ! $\endgroup$ Mar 26 at 17:50
  • $\begingroup$ you are welcome $\endgroup$
    – Chris
    Mar 26 at 18:02
3
$\begingroup$

There are quite a few ways of doing this .. it would depend on what you want to expose to the user. Here, we put a color into a named attribute, depending on a mix-factor set in the GN interface:

enter image description here

.. and pick the color up in the eye-white material:

enter image description here

for a mix:

enter image description here

.. but you could set the colors in the GN interface, too, or leave the mix to the shader, store the color on a pre-existing attribute rather than creating one, set the mix to be between 2 image-textures.. all sorts.

$\endgroup$
1
  • $\begingroup$ Thanks Robin, for your solution! :) $\endgroup$ Mar 26 at 17:56

You must log in to answer this question.

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