Detecting WebGL support
Not all browsers currently support WebGL. When you create a page that uses the
In this recipe, as an example, we will use the
01.04-detect-webgl-support.html file, which you can find in the sources provided with this book. If you open this file, you'll see the following result if your browser doesn't support WebGL:
Let's take a look at the recipe ...