I have a marching cube script with attached 3d perlin noise and a public ground value, that is the max value the noise can generate.
void PopulateTerrainMap() {