EXT_frag_depth WebGL working group (public_webgl 'at' khronos.org) Florian Boesch (pyalot 'at' gmail.com) Members of the WebGL working group 16 Adds the ability to set the depth value of a fragment from within the fragment shader with the built-in output variable gl_FragDepthEXT. [NoInterfaceObject] interface EXT_frag_depth { };
    void main(){
        gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);
        gl_FragDepthEXT = 0.5;
    }
    
Initial revision. Moved to draft. Moved to community approved. Added NoInterfaceObject extended attribute. Ratified by Khronos Board of Promoters.