Fragment depth function

I've found that there is no way to get fragment depth in fragment shader. It is particular impossible to use frame buffer with depth without fragment depth function.

Value is acquired from "gl_FragCoord.z" with new helper function.