WebGL example aligned to thesis code listing