OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
2 "http://www.w3.org/TR/html4/strict.dtd"> | |
3 <html lang="en"> | |
4 <head> | |
5 <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
6 <title>WebGL OES_standard_derivatives Extension Specification</title> | |
7 <link rel="stylesheet" type="text/css" href="../../resources/webgl-extension
.css" /> | |
8 <link rel="stylesheet" type="text/css" href="../../resources/default.css" /> | |
9 <script src="../../resources/jquery-1.3.2.min.js" type="text/javascript"></s
cript> | |
10 </head> | |
11 <!--begin-logo--> | |
12 <div> | |
13 <a href="http://webgl.org/"><img alt=WebGL height=72 src="../../resources/
WebGL-Logo.png" width=156></a> | |
14 <div class=right> | |
15 <a href="http://khronos.org/"><img alt=Khronos height=60 src="../../reso
urces/KhronosGroup-3D.png" width=220></a> | |
16 </div> | |
17 </div> | |
18 <!--end-logo--> | |
19 | |
20 <h1>WebGL OES_standard_derivatives Extension Specification</h1> | |
21 | |
22 <h2 class="no-toc">Name</h2> | |
23 <p> OES_standard_derivatives </p> | |
24 | |
25 <h2 class="no-toc">Contact</h2> | |
26 <p> <a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL worki
ng group</a> (public_webgl 'at' khronos.org) </p> | |
27 | |
28 <h2 class="no-toc">Contributors</h2> | |
29 <p> Members of the WebGL working group </p> | |
30 | |
31 <h2 class="no-toc">Version</h2> | |
32 <p> Last modified date: January 13, 2010 <br> | |
33 Revision: 1 | |
34 </p> | |
35 | |
36 <h2 class="no-toc">Number</h2> | |
37 <p> WebGL extension #4 </p> | |
38 | |
39 <h2 class="no-toc">Dependencies</h2> | |
40 <p> Written against the WebGL API 1.0 specification. </p> | |
41 | |
42 <h2 class="no-toc">Overview</h2> | |
43 <p> | |
44 This extension exposes the | |
45 <a href="http://www.khronos.org/registry/gles/extensions/OES/OES_standard_
derivatives.txt">OES_standard_derivatives</a> | |
46 functionality to WebGL. There are no WebGL-specific behavioral changes. C
onsult the above | |
47 extension for all documentation, issues, and new functions and enumerants. | |
48 </p> | |
49 <p> | |
50 When this extension is enabled: | |
51 <ul> | |
52 <li> The <code>hint</code> entry point accepts <code>FRAGMENT_SHADER_DERIV
ATIVE_HINT_OES</code> | |
53 as a target and the <code>getParameter</code> entry point accepts it
as a pname. | |
54 <li> The built-in functions <code>dFdx()</code>, <code>dFdy()</code>, and
<code>fwidth()</code> | |
55 are available in fragment shaders if the following directive is added
to the shader: | |
56 <pre> | |
57 #extension GL_OES_standard_derivatives : enable | |
58 </pre> | |
59 <li> The following macro definition is available: | |
60 <pre> | |
61 #define GL_OES_standard_derivatives 1 | |
62 </pre> | |
63 </ul> | |
64 </p> | |
65 | |
66 <h2 class="no-toc">IDL</h2> | |
67 <p> | |
68 <pre class="idl"> | |
69 module webgl { | |
70 | |
71 interface OES_standard_derivatives { | |
72 const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; | |
73 }; | |
74 | |
75 }; | |
76 </pre> | |
77 </p> | |
78 | |
79 <h2 class="no-toc">Revision History</h2> | |
80 <p> | |
81 Revision 1, 2010/01/13 | |
82 <ul> | |
83 <li> Initial revision. | |
84 </ul> | |
85 </p> | |
86 </body> | |
87 </html> | |
OLD | NEW |