0
Under review

Inverted Fresnel Mode

BecomingAt . 10 years ago updated by Freya Holmér (Developer) 10 years ago 13
Currently the fresnel node has a 1 minus built in before the power, making the outside white...
The only way to get a inside white fresnel is to make it the manual way with a dot product and a power function. It would be quite useful to have a checkbox on the fresnel node to invert it as it takes 4 nodes instead of 1 doing it the manual way.

Answer

Answer
Under review
"The only way" is an assumption of yours, careful with those, you might get in trouble one day!
You can just use the One Minus node :)


Completed
"The only way" is an assumption of yours, careful with those, you might get in trouble one day!
You can just use the One Minus node :)


This time you are wrong ;) its not the same result! Make a screenshot and invert the outcome in photoshop... it definitely looks different!!
Answer
Under review
"The only way" is an assumption of yours, careful with those, you might get in trouble one day!
You can just use the One Minus node :)


Ah, right, they have different curvature
Cool, thanks for looking into it again :D
Interesting though - I wonder which curvature is usually preferred when doing fresnel in general
I think its only different if the Exponent is other than 1, with the one minus after the fresnel you cant get any result near the one with the manual way, it only gets brighter and brighter, so i would say the one minus should be (or not be) before the Power. It would be the preferred curvature as it gives much more control.
I just double checked with photoshop, if i invert the screenshot of the fresnel node it gives exactly the resut of the manual fresnel. So i would say that inverting before the power is the correct way.
I'm trying to reproduce some old shaders that I have. Is there way to inverse and control the intensity of fresnel effect using a slider?

+1
To control the intensity, just multiply it by a slider between 0 and 1. To control the exponent, plug in a slider with values from 1 to 8 or so, and connect it to the Exp input of the fresnel node