tried to implement triangulation for texture, but it is not working yet