OpenGL cloth simulation based on Jesper Mosegaards tutorial