From 16baed04677a975c990c56df85a431e2c6468ec8 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Wed, 10 Dec 2014 23:35:37 -0500 Subject: Noise: Automatically transform noise maps if needed --- src/mapgen_v6.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/mapgen_v6.cpp') diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp index 04c3b147e..004aef8c7 100644 --- a/src/mapgen_v6.cpp +++ b/src/mapgen_v6.cpp @@ -125,7 +125,7 @@ MapgenV6Params::MapgenV6Params() { np_terrain_base = NoiseParams(-4, 20.0, v3f(250.0, 250.0, 250.0), 82341, 5, 0.6, 2.0); np_terrain_higher = NoiseParams(20, 16.0, v3f(500.0, 500.0, 500.0), 85039, 5, 0.6, 2.0); np_steepness = NoiseParams(0.85,0.5, v3f(125.0, 125.0, 125.0), -932, 5, 0.7, 2.0); - np_height_select = NoiseParams(0.5, 1.0, v3f(250.0, 250.0, 250.0), 4213, 5, 0.69, 2.0); + np_height_select = NoiseParams(0, 1.0, v3f(250.0, 250.0, 250.0), 4213, 5, 0.69, 2.0); np_mud = NoiseParams(4, 2.0, v3f(200.0, 200.0, 200.0), 91013, 3, 0.55, 2.0); np_beach = NoiseParams(0, 1.0, v3f(250.0, 250.0, 250.0), 59420, 3, 0.50, 2.0); np_biome = NoiseParams(0, 1.0, v3f(250.0, 250.0, 250.0), 9130, 3, 0.50, 2.0); @@ -552,17 +552,14 @@ void MapgenV6::calculateNoise() { noise_terrain_base->perlinMap2D( x + 0.5 * noise_terrain_base->np.spread.X, z + 0.5 * noise_terrain_base->np.spread.Z); - noise_terrain_base->transformNoiseMap(); noise_terrain_higher->perlinMap2D( x + 0.5 * noise_terrain_higher->np.spread.X, z + 0.5 * noise_terrain_higher->np.spread.Z); - noise_terrain_higher->transformNoiseMap(); noise_steepness->perlinMap2D( x + 0.5 * noise_steepness->np.spread.X, z + 0.5 * noise_steepness->np.spread.Z); - noise_steepness->transformNoiseMap(); noise_height_select->perlinMap2D( x + 0.5 * noise_height_select->np.spread.X, @@ -571,7 +568,6 @@ void MapgenV6::calculateNoise() { noise_mud->perlinMap2D( x + 0.5 * noise_mud->np.spread.X, z + 0.5 * noise_mud->np.spread.Z); - noise_mud->transformNoiseMap(); } noise_beach->perlinMap2D( -- cgit v1.2.3