     return info;
 }
 
+MaterialInfo getIorInfo(MaterialInfo info)
+{
+    info.f0 = vec3(pow(( u_ior - 1.0f) /  (u_ior + 1.0f),2));
+    
+    return info;
+}
+
 float albedoSheenScalingLUT(float NdotV, float sheenRoughnessFactor)
 {
     return texture(u_SheenELUT, vec2(NdotV, sheenRoughnessFactor)).r;


    // The default index of refraction of 1.5 yields a dielectric normal incidence reflectance of 0.04.
    float ior = 1.5;
    float f0_ior = 0.04;

#ifdef MATERIAL_SPECULARGLOSSINESS
    materialInfo = getSpecularGlossinessInfo(materialInfo);
#endif

#ifdef MATERIAL_METALLICROUGHNESS
    materialInfo = getMetallicRoughnessInfo(materialInfo, f0_ior);
#endif

#ifdef MATERIAL_SHEEN

uniform vec3 u_AttenuationColor;
uniform float u_AttenuationDistance;

//PBR Next IOR
uniform float u_ior;

// Alpha mode
uniform float u_AlphaCutoff;

