The WebGL2RenderContext allows access to WebGL 2 features when OpenGL, OpenGL ES
or WebGL is the render context type of the Window, and the current context supports
WebGL 2 features.
Using a WebGL context on a desktop platform enables support for cross-platform code that should run on all platforms (when using hardware acceleration), though support for WebGL 2 features are more limited than WebGL, and require an OpenGL ES 3.0 compatible desktop or mobile context.
You can convert from lime.graphics.RenderContext, lime.graphics.OpenGLRenderContext,
lime.graphics.OpenGLES3RenderContext or lime.graphics.opengl.GL, and can convert to
lime.graphics.WebGLRenderContext directly if desired:
var webgl2:WebGL2RenderContext = window.context;
var webgl2:WebGL2RenderContext = gl;
var webgl2:WebGL2RenderContext = gles3;
var webgl2:WebGL2RenderContext = GL;
var webgl:WebGLRenderContext = webgl2;