From 842f518535acfb5d1b65faed4ecaa9e56c959478 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Fri, 24 May 2019 13:54:21 +0100 Subject: [PATCH] Made mountains bigger Former-commit-id: c6ef0a8dba599e70177c7446fe282f357d33a66b --- world/src/sim.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/world/src/sim.rs b/world/src/sim.rs index d6f9262308..0d15b41106 100644 --- a/world/src/sim.rs +++ b/world/src/sim.rs @@ -309,9 +309,9 @@ impl SimChunk { fn generate(pos: Vec2, gen_ctx: &mut GenCtx) -> Self { let wposf = (pos * Vec2::from(TerrainChunkSize::SIZE)).map(|e| e as f64); - let hill = (gen_ctx.hill_nz.get((wposf.div(3500.0)).into_array()) as f32).max(0.0); + let hill = (gen_ctx.hill_nz.get((wposf.div(3_500.0)).into_array()) as f32).max(0.0); - let chaos = (gen_ctx.chaos_nz.get((wposf.div(3500.0)).into_array()) as f32) + let chaos = (gen_ctx.chaos_nz.get((wposf.div(5_000.0)).into_array()) as f32) .add(1.0) .mul(0.5) .powf(1.9) @@ -319,13 +319,13 @@ impl SimChunk { let chaos = chaos + chaos.mul(20.0).sin().mul(0.05); - let alt_base = gen_ctx.alt_nz.get((wposf.div(5000.0)).into_array()) as f32; + let alt_base = gen_ctx.alt_nz.get((wposf.div(12_000.0)).into_array()) as f32; let alt_base = alt_base .mul(0.4) .add(alt_base.mul(16.0).sin().mul(0.01)) - .mul(750.0); + .mul(1_200.0); - let alt_main = gen_ctx.alt_nz.get((wposf.div(750.0)).into_array()) as f32; + let alt_main = gen_ctx.alt_nz.get((wposf.div(1_500.0)).into_array()) as f32; Self { chaos,