Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 53d35a0e04
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (49 sloc) 1.495 kB
<?xml version="1.0" encoding="UTF-8"?>
<draft href="EXT_frag_depth">
<name>EXT_frag_depth</name>
<contact> <a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL
working group</a> (public_webgl 'at' khronos.org) </contact>
<contributors>
<contributor>Florian Boesch (pyalot 'at' gmail.com)</contributor>
<contributor>Members of the WebGL working group</contributor>
</contributors>
<number>16</number>
<depends>
<api version="1.0"/>
</depends>
<overview>
<mirrors href="http://www.khronos.org/registry/gles/extensions/EXT/EXT_frag_depth.txt"
name="EXT_frag_depth">
</mirrors>
<features>
<feature>
Adds the ability to set the depth value of a fragment from
within the fragment shader with the built-in output variable gl_FragDepthEXT.
</feature>
<glsl extname="GL_EXT_frag_depth">
<stage type="fragment"/>
<output name="gl_FragDepthEXT" type="float" />
</glsl>
</features>
</overview>
<idl xml:space="preserve">
interface EXT_frag_depth {
};
</idl>
<samplecode xml:space="preserve">
<pre>
void main(){
gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);
gl_FragDepthEXT = 0.5;
}
</pre>
</samplecode>
<history>
<revision date="2012/11/22">
<change>Initial revision.</change>
</revision>
<revision date="2012/12/17">
<change>Moved to draft.</change>
</revision>
</history>
</draft>
Jump to Line
Something went wrong with that request. Please try again.