Beispiel #1
0
 /// <summary>
 /// Get surface height on x.
 /// </summary>
 /// <returns>The height.</returns>
 /// <param name="x">The x coordinate.</param>
 public float HeightMap(float x)
 {
     return(BASE_HEIGHT + (float)((NoiseMap.Evaluate(x / (Chunk.SIZE * 32), 0) - 0.5) *
                                  BASE_STEP + 8 * NoiseMap.Evaluate(x / 128, Chunk.SIZE)));
 }