bagginsbill opened this issue on Sep 29, 2010 ยท 74 posts
bagginsbill posted Wed, 29 September 2010 at 3:00 PM
In matmatic, you use the PM function to make a parameter. Pass the initial value, and a label. It will make a math node for you and put it on the left side of the shader tree. All the non-parameter nodes will go on the right, and can be ignored when using the shader.
So this is a two line change. You want to say:
ior = PM(1.5, "IOR")
fresnel = TrueFresnel(ior)
reflect = Reflect()
combination = fresnel * reflect
surface = View(combination)
Once you make that, you can load it and then you can change the IOR on the fly without using matmatic any more.
This version, with an ior parameter, has a lot more nodes, but they are really cheap so don't worry about performance.
Attached is a render with ior = 1.2. Notice how the shallow angled edge reflections are still very bright, but the perpendicular reflections are weaker.
This is how IOR affects the reflection falloff. It doesn't change the shallowest reflections - they are still near 100%. It changes the perpendicular reflections the most.
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)