Platform/GFX/WebGL2: Difference between revisions

Jump to navigation Jump to search
m
Line 31: Line 31:
Because WebGL 2 prototype isn't not secure at all, it's only available in nightlies and need to be enabled by a hidden flag. Beyond this point, your are running nightlies at your owns risks. We recommend you to do not use this nightly for something else than running WebGL 2 prototype code and keep using your default web browser for everyday use. In case of your default browser is Firefox, you will still be able to use it thanks by "-P webgl2_config".
Because WebGL 2 prototype isn't not secure at all, it's only available in nightlies and need to be enabled by a hidden flag. Beyond this point, your are running nightlies at your owns risks. We recommend you to do not use this nightly for something else than running WebGL 2 prototype code and keep using your default web browser for everyday use. In case of your default browser is Firefox, you will still be able to use it thanks by "-P webgl2_config".


Access to about:config in the url bar.
* Access to about:config in the url bar.
 
* Search for webgl.enable-draft-extensions and set it to true. That will let you use [http://www.khronos.org/registry/webgl/extensions/WEBGL_draw_buffers/ WEBGL_draw_buffers] extension in WebGL 1.0, and natively in WebGL 2.
Search for webgl.enable-draft-extensions and set it to true. That will let you use [http://www.khronos.org/registry/webgl/extensions/WEBGL_draw_buffers/ WEBGL_draw_buffers] that is natively supported by WebGL 2.
* Right click -> New -> Boolean and set webgl.enable-prototype-webgl2 to true.
 
Right click -> New -> Boolean and enter webgl.enable-prototype-webgl2. Make sure that it's set to true. To disable WebGL 2 prototype, just set it to false, and you won't be able to create WebGL 2 context anymore.


==== Create the WebGL 2 prototype context ====
==== Create the WebGL 2 prototype context ====
Confirmed users
188

edits

Navigation menu