Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.01 KB

File metadata and controls

42 lines (32 loc) · 1.01 KB

WebGLexamples

Demo from

  1. book [WebGL Programming Guide source code demo]
  2. webglfundamentals
  3. webgl2example
  4. learnopengl
  5. 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)

webgl programming guide source code

feature

  1. use parcel start up
  2. remove all html files
  3. move vert frag to single .glsl file
  4. test