Platform/GFX/WebGL2: Difference between revisions

Jump to navigation Jump to search
Replace with link to MDN.
No edit summary
(Replace with link to MDN.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
= Specification =
Please see https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API#WebGL_2.
 
WebGL2 specification is now well underway at Khronos. There is a [https://www.khronos.org/registry/webgl/specs/latest/2.0/ draft specification].
 
= 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.
 
On Windows, until we get full ES3 support in ANGLE, you may also need to set
 
    webgl.disable-angle
 
to 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");
 
= Requirements =
 
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).
Confirmed users
94

edits

Navigation menu