added code to render cloth with triangles (only works for vertical cloth though)