Improved mountain rock transition

This commit is contained in:
Joshua Barretto 2019-06-21 09:08:20 +01:00
parent 693d59cc93
commit f3adf6ab5f
2 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ impl<'a> Sampler for ColumnGen<'a> {
- marble * 24.0)
/ 12.0,
),
(alt - CONFIG.sea_level - 0.2 * CONFIG.mountain_scale + marble * 48.0) / 100.0,
(alt - CONFIG.sea_level - 0.3 * CONFIG.mountain_scale + marble * 128.0) / 100.0,
),
// Beach
((alt - CONFIG.sea_level - 2.0) / 5.0).min(1.0 - river * 2.0),

View File

@ -283,7 +283,7 @@ impl SimChunk {
.add(0.5)
.min(1.0),
)
.powf(1.4)
.powf(1.5)
.add(0.1 * hill);
let chaos = chaos + chaos.mul(16.0).sin().mul(0.02);
@ -296,7 +296,7 @@ impl SimChunk {
let alt_main = (gen_ctx.alt_nz.get((wposf.div(2_000.0)).into_array()) as f32)
.abs()
.powf(1.7);
.powf(1.8);
let alt = CONFIG.sea_level
+ alt_base