A WebGL implementation of the marching cubes algorithm for deformable terrain