Demo from
- book [WebGL Programming Guide source code demo]
- webglfundamentals
- webgl2example
- learnopengl
- 3dGameShadersForBeginner
# install dep
$ yarn
# start static server
$ yarn start
# change src/index.js choose target example
git clone https://github.com/prophetw/WebGLTuturialSourceCode.git WebGLexamples
# use Spector to debug gl instructions
git clone https://github.com/BabylonJS/Spector.js.git
cd Spector.js
yarn
yarn link
cd WebGLexamples
yarn link 'spectorjs'
# if you want to debug webgl commands
```js
window.spector.startCapture(document.getElementById('canvasId'), commandCount)
- use parcel start up
- remove all html files
- move vert frag to single .glsl file
- test