 #endif
 
 #ifdef MATERIAL_CLEARCOAT
-    materialInfo = getClearCoatInfo(materialInfo, normalInfo, f0_ior);
+    materialInfo = getClearCoatInfo(materialInfo, normalInfo, materialInfo.f0);
 #endif
 
 #ifdef MATERIAL_TRANSMISSION

uniform vec3 u_AttenuationColor;
uniform float u_AttenuationDistance;

// Alpha mode
uniform float u_AlphaCutoff;



    // 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 = getSpecularGlossinessInfo(materialInfo);
#endif

#ifdef MATERIAL_METALLICROUGHNESS
    materialInfo = getMetallicRoughnessInfo(materialInfo, materialInfo.f0);
#endif

#ifdef MATERIAL_SHEEN
