Change for different resolutions.
Voxel code. Not working so far ...