fixed blending
Implementing noise blending
This commit is contained in:
@@ -16,7 +16,7 @@ impl Plugin for BuildingPugin {
|
||||
app.insert_resource(BuildQueue::default());
|
||||
|
||||
app.add_systems(Startup, init);
|
||||
app.add_systems(Update, hq_placement.run_if(in_state(GameplayState::PlaceHQ)));
|
||||
//app.add_systems(Update, hq_placement.run_if(in_state(GameplayState::PlaceHQ)));
|
||||
|
||||
app.add_systems(PreUpdate, process_build_queue.run_if(in_state(GameplayState::Playing)));
|
||||
}
|
||||
|
||||
Submodule game/main/assets updated: f809b7232a...2f1fb1ba3b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user