Ejemplo n.º 1
0
 public override void Run()
 {
     HeightOperations.AddNoise(map, 0.1f, 0.004f);
     HeightOperations.AddNoise(map, 0.2f, 0.01f);
     HeightOperations.AddNoise(map, 0.015f, 0.05f);
     HeightOperations.AddNoise(map, 0.005f, 0.1f);
     map.Normalize();
     HeightOperations.SimpleFlattenTopAndBottom(map);
 }
 public override void Run()
 {
     Debug.Log("Seed is: " + seed);
     HeightOperations.AddSlope(map, 1f, rand);
     map.Normalize();
     HeightOperations.AddNoise(map, 0.1f, 0.01f);
     HeightOperations.AddNoise(map, 0.015f, 0.05f);
     HeightOperations.AddNoise(map, 0.005f, 0.1f);
     map.Normalize();
     HeightOperations.ApplyPowerLevel(map, SEA_LEVEl, 2f);
     map.Normalize();
     HeightOperations.Smooth(map, steps: 20, max_height: SEA_LEVEl);
 }