
Add the command line argument -enable-accelerated-compositing to test it. Enabling the compositor improves WebGL performance by avoiding expensive frame buffer readbacks when drawing the rendering results to the screen. Support for accelerated compositing is also compiled in for all three platforms.

All future invocations of the browser will run with WebGL enabled.Ĭhromium is the Open Source project behind the Google Chrome browser, and its continuous builds are currently the best way to get WebGL support in a Chrome-style browser under Linux, Mac OS X, and Windows.

Īfter downloading and installing the browser, open the Terminal and type the following:ĭefaults write WebKitWebGLEnabled -bool YES
#ENABLE WEBGL ON CHROME FOR MAC MAC OS X#
WebGL is supported on Mac OS X 10.6 in the WebKit nightly builds available at. Note that the OSMesa library is required to use "gl" prefixes, not "mgl". If OpenGL is not available, or for testing/debugging purposes, software rendering can be used through OSMesa (off-screen Mesa), by setting the "webgl.osmesalib" variable to point to the OSMesa shared library (typically /usr/lib/libOSMesa.so). The implementation requires working OpenGL 2.1 drivers and the availability of PBuffers. Visit for builds on Linux (32- and 64-bit), Mac OS X and Windows.Īfter downloading the browser, enable WebGL: type about:config into the address bar, search for "webgl", and double-click "webgl.enabled_for_all_sites" to set it to true. WebGL is supported in Firefox/4.0b1 and in the nightly builds of Firefox. As the specification nears completion, expect that browsers will have this functionality built in to their latest releases, and not require any manual steps to enable it.

#ENABLE WEBGL ON CHROME FOR MAC HOW TO#
Here are instructions on how to obtain a copy of a browser supporting the provisional WebGL specification. WebGL is currently under development, and is supported in the latest builds of several browsers.
