I wrote some WebGL / Javascript demos for some coursework which I ended up hosting on Github Pages.

Simple demos

More interesting demos

I used WebGL to render a Torus - the interesting thing here is that the input is a square grid of vertices which get wrapped into a Torus in the vertex shader.

I also wrote a Javascript raytracer which produces a very well rendered looking result.

Raytraced result showing three spheres with focal depth