EXT_frag_depth
WebGL working group (public_webgl 'at' khronos.org)
Florian Boesch (pyalot 'at' gmail.com)
Members of the WebGL working group
Last modified date: December 17, 2012
Revision: 2
WebGL extension #16
Written against the WebGL API 1.0 specification.
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:
GL_EXT_frag_depth with an #extension directive:float gl_FragDepthEXT is a built-in output.
GL_EXT_frag_depth
is defined as 1.
interface EXT_frag_depth {
};
void main(){
gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);
gl_FragDepthEXT = 0.5;
}
Revision 1, 2012/11/22
Revision 2, 2012/12/17