         normal,
         0.0 //Clearcoat factor is null
     );
-
     MaterialInfo clearCoatInfo = MaterialInfo(
         clearcoatRoughness,
         vec3(0.04), //fixed from specification //todo use variable from functions

    diffuseColor = baseColor.rgb * (vec3(1.0) - f0) * (1.0 - metallic);

    specularColor = mix(f0, baseColor.rgb, metallic);

    //assuming that in the metallicRoughness setting f0 stays vec3(0.04)
    clearcoatColor = mix(f0,baseColor.rgb,metallic);

#endif // ! MATERIAL_METALLICROUGHNESS

#ifdef ALPHAMODE_MASK

    vec3 diffuse = diffuseLight * materialInfo.diffuseColor;
    vec3 specular = specularLight * (materialInfo.specularColor * brdf.x + brdf.y);

    return diffuse + specular;
}
#endif //USE_IBL

