Cloth simulation using a spring mesh model and Verlet integration. Both simulation and rendering is done on the GPU, in WebGL. On mobile devices, tilting the device changes the direction of gravity.
[Work in progress]