Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Vertical biome blend: Tune PRNG seed for finer detail (#7329)
  • Loading branch information
paramat committed May 14, 2018
1 parent 0cecc1d commit a01a9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mapgen/mg_biome.cpp
Expand Up @@ -142,7 +142,7 @@ Biome *BiomeManager::getBiomeFromNoiseOriginal(float heat, float humidity, v3s16
}
}

mysrand(pos.Y + (heat + humidity) / 2);
mysrand(pos.Y + (heat + humidity) * 0.9f);
if (biome_closest_blend && dist_min_blend <= dist_min &&
myrand_range(0, biome_closest_blend->vertical_blend) >=
pos.Y - biome_closest_blend->max_pos.Y)
Expand Down Expand Up @@ -302,7 +302,7 @@ Biome *BiomeGenOriginal::calcBiomeFromNoise(float heat, float humidity, v3s16 po
// Carefully tune pseudorandom seed variation to avoid single node dither
// and create larger scale blending patterns similar to horizontal biome
// blend.
mysrand(pos.Y + (heat + humidity) / 2);
mysrand(pos.Y + (heat + humidity) * 0.9f);

if (biome_closest_blend && dist_min_blend <= dist_min &&
myrand_range(0, biome_closest_blend->vertical_blend) >=
Expand Down

0 comments on commit a01a9ca

Please sign in to comment.