building a voxel engine in javascript with three.js