Page 1 of 1

OSL IOR / Fresnel?

Posted: Mon Apr 30, 2018 8:04 am
by Timelinedenmark
Hi Octane Community

I'm looking for some coding adivce and it´s probably a very simple task.

I need a Simple IOR/Fresnel code snippet for the new OSL compiler. 1 x input for an IOR value and 1 x black & white output.
The falloff node doesn´t make any sense to me, and it´s way more easy to work with IOR values.

Can anyone help me out? :)

/Nicolaj

Re: OSL IOR / Fresnel?

Posted: Mon Apr 30, 2018 11:13 am
by fantome
Hi Nicolaj,

I agree IOR or Normalized disney Value are much explicit to remap fresnel.

This might interest you :
viewtopic.php?f=9&t=66100
The above post deal with complex IOR

https://learnopengl.com/PBR/Theory
you can use the fresnel-shlick law it will be more straightforward.
you can easily translate this in OSL i guess

Cheers
E