devwiki:three_js

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devwiki:three_js [2022/07/15 01:00] – [Quick Start] yingdevwiki:three_js [2022/07/17 11:49] (current) – [Browse Support] ying
Line 34: Line 34:
     * webgl2 support browser tabel: https://caniuse.com/webgl2     * webgl2 support browser tabel: https://caniuse.com/webgl2
  
 +  * check webgl2 support <code javascript> 
 +// check webgl2 support for multi sample version 
 +const gl = document.createElement('canvas').getContext('webgl2'); 
 +if (!gl) { 
 +  alert('your browser/OS/drivers do not support WebGL2'); 
 +  console.log('your browser/OS/drivers do not support WebGL2'); 
 +} else { 
 +  console.log('webgl2 works!'); 
 +
 +</code>
 ====== Tools ====== ====== Tools ======
  
  • devwiki/three_js.txt
  • Last modified: 2022/07/17 11:49
  • by ying