Platform/GFX/WebGL2: Difference between revisions

From MozillaWiki
< Platform‎ | GFX
Jump to navigation Jump to search
(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...")
No edit summary
Line 1: Line 1:
= How to enable the WebGL2 prototype in Firefox =
= How to enable the WebGL2 prototype in Firefox =
WebGL2 specification is now well underway at Khronos. There is a [https://www.khronos.org/registry/webgl/specs/latest/2.0/ draft specification].


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

Revision as of 22:11, 18 October 2014

How to enable the WebGL2 prototype in Firefox

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

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