Exporting fragDepth function.