Table of contents
WebGL brings 3D graphics to the Web by introducing an API that closely conforms to OpenGL ES 2.0 that can be used in HTML5 canvas elements. Support for WebGL is present in Firefox 4 and Google Chrome 9.
Development topics
| Resources
|
Browser compatibility
| Feature | Firefox (Gecko) | Chrome | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 4.0 (2.0) | 9 | -- | -- | Nightly build |
| Context name | experimental-webgl | experimental-webgl | n/a | n/a | experimental-webgl |
OES_texture_float | 6.0 (6.0) | ? | ? | ? | ? |
OES_standard_derivatives | 10.0 (10.0) | ? | ? | ? | ? |
drawingBufferWidth and drawingBufferHeight attributes | 9.0 (9.0) | ? | ? | ? | ? |
| Feature | Firefox Mobile (Gecko) | Android | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? |
| Context name | ? | ? | ? | ? | ? |
OES_texture_float | 6.0 (6.0) | ? | ? | ? | ? |
OES_standard_derivatives | 10.0 (10.0) | ? | ? | ? | ? |
drawingBufferWidth and drawingBufferHeight attributes | 9.0 (9.0) | ? | ? | ? | ? |
Gecko notes
WebGL debugging and testing
Starting with Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0) , there are two preferences available which let you control the capabilities of WebGL for testing purposes:
webgl.min_capability_mode- A Boolean property that, when
true, enables a minimum capability mode. When in this mode, WebGL is configured to only support the bare minimum feature set and capabilities required by the WebGL specification. This lets you ensure that your WebGL code will work on any device or browser, regardless of their capabilities. This isfalseby default. webgl.disable_extensions- A Boolean property that, when
true, disables all WebGL extensions. This isfalseby default.


Mozilla Developer Network