float SchlickIORFresnelFunction(float ior ,float LdotH){ float f0 = pow(ior-1,2)/pow(ior+1, 2); return f0 + (1-f0) * SchlickFresnel(LdotH); }