Computer Graphics, Opengl, 3d Modeling, 3d Design.
gl_FragDepth in the fragment shader wherever applicable. If the GPU workload by the fragment shader becomes an issue and if you want to enable the early fragment test, you have two choices: One is setting the log-depth to gl_Position.z at the sacrifice of distorted geometry. The other is to go back