The JavaScript source of this example is: renderer.js
If you do not see an output below, your browser does not support WebGL. The WebGL shader code is slightly different from the GLSL code (version 1.4 ) that is used in the lecture.
This is because WebGL shaders must conform to the OpenGL ES Shading Language (Version 1.0) which can be found here.
| Vertex shader: |
Fragment shader: |