No - gl_FragDepth (which is part of the desktop version of GLSL) is missing in OpenGL ES.
However, you can check for GL_EXT_frag_depth . If available, you can write the depth to gl_FragDepthEXT .
The document contains more detailed information on how to enable the extension, etc.
Jerry Coffin
source share