Computer Graphics, Opengl, 3d Modeling, 3d Design.
gl_FragDepth in the fragment shader, the early fragment test can not be enabled. This is true even with GL_ARB_conservative_depth as follows. If GL_ARB_conservative_depth is enabled, you could redeclare gl_FragDepth as follows. #extension GL_ARB_conservative_depth : enable layout(depth_less) out