fixed blending

Implementing noise blending
This commit is contained in:
2024-07-07 00:00:34 -04:00
parent 97f2497940
commit 8e92df8008
6 changed files with 85 additions and 41 deletions

View File

@@ -206,19 +206,19 @@ fn create_heightmap(
biome_painter: Res<BiomePainter>,
) {
let config = GenerationConfig {
biome_blend: 3,
biome_blend: 16,
continent_layer: NoiseConfig {
scale: 450.,
layers: vec![GeneratorLayer {
base_roughness: 2.14,
roughness: 0.87,
strength: 100.,
min_value: -0.2,
min_value: 0.,
persistence: 0.77,
is_rigid: false,
weight: 0.,
weight_multi: 0.,
layers: 4,
layers: 1,
first_layer_mask: false,
}],
},
@@ -228,12 +228,12 @@ fn create_heightmap(
base_roughness: 2.14,
roughness: 0.87,
strength: 100.,
min_value: -0.2,
min_value: 0.,
persistence: 0.77,
is_rigid: false,
weight: 0.,
weight_multi: 0.,
layers: 4,
layers: 1,
first_layer_mask: false,
}],
},
@@ -243,18 +243,18 @@ fn create_heightmap(
base_roughness: 2.14,
roughness: 0.87,
strength: 100.,
min_value: -0.2,
min_value: 0.,
persistence: 0.77,
is_rigid: false,
weight: 0.,
weight_multi: 0.,
layers: 4,
layers: 1,
first_layer_mask: false,
}],
},
sea_level: 8.5,
border_size: 64.,
size: UVec2::splat(1024 / Chunk::SIZE as u32),
size: UVec2::splat(16),
// size: UVec2::splat(1),
};
let heightmap = generate_heightmap(&config, 42069, &biome_painter);