Is there a way to detect WebGL availability?
I'm working on a game that requires WebGL.
I would like to be able to detect a lack of WebGL support, and display a, "This game requires WebGL", notice.
I just thought of a workaround.
I can make my "WebGL Required" notice cover the game's title screen, and then place a WebGL shader on it that makes it transparent. If WebGL is working, then you won't see the notice. If WebGL is not working then the notice will show up.
I'm still interested to know if there is an event condition that can check for WebGL support, if anyone knows of one.