 #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;


    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;
