#include #include #include #include void main() { #include #include #ifdef USE_LOGDEPTHBUF_EXT float depth = gl_FragDepthEXT; #else float depth = gl_FragCoord.z; #endif gl_FragData[ 0 ] = packLinearUnitToRGBA( depth ); }