Massively optimized voxelization algorithm