1.4_support - MartijnKeesmaat/WebGL-practice GitHub Wiki
WebGL
- WebGL 1: 98% of all browsers
- WebGL 2: 53% of all browsers
Three.js
Three.js can use WebGL to render your scenes on all modern browsers. For older browsers, especially Internet Explorer 10 and below, you may have to fallback to one of the other renderers (CSS2DRenderer, CSS3DRenderer, SVGRenderer). Additionally, you may have to include some polyfills, especially if you are using files from the /examples folder.
Note: if you don't need to support these old browsers, then it is not recommended to use the other renderers as they are slower and support fewer features than the WebGLRenderer.
Browsers that support WebGL Google Chrome 9+, Firefox 4+, Opera 15+, Safari 5.1+, Internet Explorer 11 and Microsoft Edge. You can find which browsers support WebGL at Can I use WebGL.
Even though this is becoming less and less of a problem, some devices or browsers may still not support WebGL. The following method allows you to check if it is supported and display a message to the user if it is not.
if ( WEBGL.isWebGLAvailable() ) {
// Initiate function or other initializations here
animate();
} else {
var warning = WEBGL.getWebGLErrorMessage();
document.getElementById( 'container' ).appendChild( warning );
}