Skip to content

Commit f9ad061

Browse files
committed
Vertical biome blend: Tune blend patterns
1 parent 2bc7c5f commit f9ad061

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/mapgen/mg_biome.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Biome *BiomeManager::getBiomeFromNoiseOriginal(float heat, float humidity, s16 y
133133
}
134134
}
135135

136-
mysrand(y + (heat - humidity) * 2);
136+
mysrand(y + (heat + humidity) / 2);
137137
if (biome_closest_blend &&
138138
myrand_range(0, biome_closest_blend->vertical_blend) >=
139139
y - biome_closest_blend->y_max)
@@ -196,7 +196,7 @@ BiomeGenOriginal::~BiomeGenOriginal()
196196
delete noise_humidity_blend;
197197
}
198198

199-
199+
// Only usable in a mapgen thread
200200
Biome *BiomeGenOriginal::calcBiomeAtPoint(v3s16 pos) const
201201
{
202202
float heat =
@@ -286,8 +286,9 @@ Biome *BiomeGenOriginal::calcBiomeFromNoise(float heat, float humidity, s16 y) c
286286
}
287287

288288
// Carefully tune pseudorandom seed variation to avoid single node dither
289-
// and create larger scale blending patterns.
290-
mysrand(y + (heat - humidity) * 2);
289+
// and create larger scale blending patterns similar to horizontal biome
290+
// blend.
291+
mysrand(y + (heat + humidity) / 2);
291292

292293
if (biome_closest_blend &&
293294
myrand_range(0, biome_closest_blend->vertical_blend) >=

0 commit comments

Comments
 (0)