heightmap is a 2D ndarray representing the heightmap. Its size ("shape") will determine the resolution of the final output.