7

I have been using the mix shader to get different types of metals by mixing diffuse and glossy, I always get good results. However there is a thing I have not understand yet: why the material changes when I exchange the two mix shader inputs (diffuse and glossy). Any explanation out there? Thanks.

enter image description here

enter image description here

Bryson Jack
  • 3,757
  • 11
  • 38
  • 51
VJ Galaxy
  • 398
  • 3
  • 13
  • related: http://blender.stackexchange.com/questions/10595/how-does-fac-differ-with-manual-control-versus-node-control/10596#10596 –  Apr 21 '16 at 16:38

2 Answers2

11

The fresnel node will produce a mask like this:

frenel

when you use it as a factor you are just saying that the first input will replace the black and the 2nd will replace the white,

when you switch the inputs,you are just saying that the black should be the 2nd input and the white should be he first.

You can see how this work using a mix color node to visualize it: red

By switching :

Cyan

Omar Emara
  • 22,639
  • 5
  • 55
  • 103
1

Yes, has explained above in Omar Ahmad answer the question it's not so much "How does the mix shader work" it's more "How does the Fresnel node work".

They reason your are getting different results when switching positions between those shaders is because of the Fresnel node, not the mix shader itself.

If you were to remove the Fresnell from your material the results would indeed be the same given the Mix node was at 0.5 .

Duarte Farrajota Ramos
  • 59,425
  • 39
  • 130
  • 187