8
$\begingroup$

How can I go if I want to mix more than two shaders? Lets say that I have a diffuse and a glossy shader pluged onto a mix shader and than I want to put in a third shader (or more). How can I do that?

$\endgroup$
2
  • 4
    $\begingroup$ Couldn't you use another Mix shader? Mix two inputs with Fac 0.5, connect the output to a second Mix shader and set its Fac to 0.66. Use the third input for the second input (will use the remaining 0.33, each 1/3). $\endgroup$
    – CodeManX
    Commented Feb 12, 2014 at 1:54
  • $\begingroup$ This ^^^ is correct. The numbers in the answer below are incorrect. $\endgroup$ Commented Aug 5, 2018 at 6:27

1 Answer 1

6
$\begingroup$

The mix shader only directly supports two inputs, as you've seen. But the easiest fix here is just to use two mix shaders:

enter image description here

  • Mix Shader 1 takes Diffuse and Glossy as input.
  • Mix Shader 2 takes Mix Shader 1 and another shader as input.

If you want to make the shaders evenly distributed, you could set Mix Shader 2's Fac value to 0.333 (assuming Mix Shader 1 is in the first slot) to give each shader one-third of the overall influence.

$\endgroup$
1
  • 2
    $\begingroup$ The numbers are incorrect...setting the Fac to 1 will use only the bottom shader. Setting the second Mix Fac to .333 doesn't give the desired result. The comment above from CoDEmanX is correct ^^^. Try it with a red, green, and blue glass shader. With the right numbers you should get a gray color. $\endgroup$ Commented Aug 5, 2018 at 6:26

You must log in to answer this question.

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