protected override bool CalculateHeight(out float height, int x, int z) { float noiseValue = noiseFunction.Sample2D(offset.x + x / (float)width, offset.y + z / (float)length); height = (noiseValue + 1) / 2; return(true); }