Creating block terrain in three.js with greedy meshing