Platform/GFX/WebGL2

< Platform‎ | GFX
Revision as of 22:05, 18 October 2014 by Bjacob (talk | contribs) (Replaced content with "= How to enable the WebGL2 prototype in Firefox = Go to about:config, create new boolean preference with the name webgl.enable-prototype-webgl2 and the value t...")

How to enable the WebGL2 prototype in Firefox

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

   webgl.enable-prototype-webgl2

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");