SHARE
TWEET

Untitled

a guest Aug 20th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _Ior("Ior",  Range(1,4)) = 1.5
  2.  
  3. float SchlickIORFresnelFunction(float ior ,float LdotH)
  4. {
  5.     float f0 = pow(ior-1,2)/pow(ior+1, 2);
  6.     return f0 + (1-f0) * SchlickFresnel(LdotH);
  7. }
  8.  
  9.  
  10. FresnelFunction *=  SchlickIORFresnelFunction(_Ior, LdotH);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top