Forum: Poser - OFFICIAL


Subject: Glossy materials with true Fresnel effect using matmatic

bagginsbill opened this issue on Sep 29, 2010 ยท 74 posts


bagginsbill posted Wed, 29 September 2010 at 3:02 PM

Now we want to combine these with the Fresnel reflection shader.

Recall that if reflection is high, diffuse is low, and vice versa. In fact, they are in a "complementary" blended relationship. Whenever we want a complementary blended combination, we use a Blender node.

The blending factor here will be our fresnel value.

The whole script is:

color = PMC(Color(.3, 0, 0), "Color")
diffuseColor = AGC(color)
diffuseValue = PM(.8, "Diffuse Value")
diffuse = Diffuse(diffuseColor, diffuseValue)

ior = PM(1.5, "IOR")
fresnel = TrueFresnel(ior)
reflect = AGC(Reflect())

combination = Blend(diffuse, reflect, fresnel)
output = GC(combination)
surface = View(output)

The attached render shows the results. Fantastic!


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)