[name]


Even those this is becming less and less of a problem, some devices or browsers may not support WebGL. Here is how to check if it is supported and display a warning to the user if it is not.

A solution

In order to detect webgl compatibility and gracefully inform the user you can add https://github.com/mrdoob/three.js/blob/master/examples/js/Detector.js to your javascript and use this example to avoid even attempting to render anything:

if (Detector.webgl) {
		    init();
		    animate();
		} else {
		    var warning = Detector.getWebGLErrorMessage();
		    document.getElementById('container').appendChild(warning);
		}