     return info;
 }
 
-MaterialInfo getMetallicRoughnessInfo(MaterialInfo info, float f0_ior)
+MaterialInfo getMetallicRoughnessInfo(MaterialInfo info)
 {
     info.metallic = u_MetallicFactor;
     info.perceptualRoughness = u_RoughnessFactor;


    MaterialInfo materialInfo;
    materialInfo.baseColor = baseColor.rgb;

    // The default index of refraction of 1.5 yields a dielectric normal incidence reflectance of 0.04.
    float ior = 1.5;
    materialInfo.f0 = 0.04;
#ifdef MATERIAL_IOR
    materialInfo = getIorInfo(materialInfo);
    ior = u_ior;
#endif

#ifdef MATERIAL_SPECULARGLOSSINESS


MaterialInfo getIorInfo(MaterialInfo info)
{
    info.f0 = vec3(pow(( u_ior - 1.0f) /  (u_ior + 1.0f),2.0));
    
    return info;
}
