Exemplo n.º 1
0
 override public void MutateChunk(Age.TerrainChunk chunk, ChunkParameters parms) {
   if (parms.addMode == Age.TerrainChunk.AddMode.Max) {
     float maxHeight = .12f + (.80f * this.quantity * parms.targetHeight);
     chunk.Clamp(this.quantity * -parms.targetHeight, maxHeight);
   } else {
     chunk.Clamp(this.quantity * -parms.targetHeight, this.quantity * parms.targetHeight);
   }
 }