Guest User

Untitled

a guest
Aug 20th, 2019
60
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