Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement