Improved mountain slopes and cliffs

This commit is contained in:
Joshua Barretto 2019-08-25 18:04:18 +01:00
parent 17a61e0b7c
commit f8c5b277e3
2 changed files with 3 additions and 3 deletions

View File

@ -184,8 +184,8 @@ impl<'a> BlockGen<'a> {
alt + warp
} else {
let turb = Vec2::new(
world.sim().gen_ctx.fast_turb_x_nz.get(wposf.div(16.0)) as f32,
world.sim().gen_ctx.fast_turb_y_nz.get(wposf.div(16.0)) as f32,
world.sim().gen_ctx.fast_turb_x_nz.get(wposf.div(25.0)) as f32,
world.sim().gen_ctx.fast_turb_y_nz.get(wposf.div(25.0)) as f32,
) * 8.0;
let wpos_turb = Vec2::from(wpos).map(|e: i32| e as f32) + turb;

View File

@ -216,7 +216,7 @@ impl WorldSim {
// maximal at 0. Also to be multiplied by CONFIG.mountain_scale.
let alt_main = (gen_ctx.alt_nz.get((wposf.div(2_000.0)).into_array()) as f32)
.abs()
.powf(1.45);
.powf(1.35);
(0.0 + alt_main
+ (gen_ctx.small_nz.get((wposf.div(300.0)).into_array()) as f32)