Function to retrieve current fragment depth is added. Depth value is
acquired from gl_FragCoord.z variable.