From MozillaWiki
< Platform‎ | GFX
Jump to: navigation, search


WebGL2 specification is now well underway at Khronos. There is a draft specification.

How to enable the WebGL2 prototype in Firefox

Go to about:config, create new boolean preference with the name


and the value true.

How to create a WebGL2 context

Similar to ordinary WebGL contexts, just use the "experimental-webgl2" context id:

   var gl = somecanvas.getContext("experimental-webgl2");


WebGL2 requires either OpenGL ES 3.0 support, or a comparable desktop OpenGL feature set (any desktop OpenGL 3.2 system should work, but not all of OpenGL 3.2 is required).