WebGL
Khronos
 

WebGL EXT_frag_depth Extension Specification

Name

EXT_frag_depth

Contact

WebGL working group (public_webgl 'at' khronos.org)

Contributors

Florian Boesch (pyalot 'at' gmail.com)

Members of the WebGL working group

Version

Last modified date: July 15, 2014
Revision: 4

Number

WebGL extension #16

Dependencies

Written against the WebGL API 1.0 specification.

Overview

This extension exposes the EXT_frag_depth functionality to WebGL.

There are no WebGL-specific behavioral changes.

Consult the above extension for documentation, issues and new functions and enumerants.

When this extension is enabled:

IDL

    [NoInterfaceObject]
    interface EXT_frag_depth {
    };
  

Sample Code

    void main(){
        gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);
        gl_FragDepthEXT = 0.5;
    }
    

Revision History

Revision 1, 2012/11/22

Revision 2, 2012/12/17

Revision 3, 2014/05/13

Revision 4, 2014/07/15