From 6725e99798ee938394155935227e051802f0e51f Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Fri, 31 May 2019 17:00:51 +0100 Subject: [PATCH] Switched to squircle caves --- world/src/sim.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/world/src/sim.rs b/world/src/sim.rs index ce0cd5dedc..2f9b35fdd3 100644 --- a/world/src/sim.rs +++ b/world/src/sim.rs @@ -60,7 +60,7 @@ impl WorldSim { .set_octaves(8) .set_persistence(0.75) .set_seed(seed + 9), - cave_0_nz: BasicMulti::new().set_lacunarity(1.5).set_persistence(0.8).set_seed(seed + 10), + cave_0_nz: BasicMulti::new().set_seed(seed + 10), cave_1_nz: SuperSimplex::new().set_seed(seed + 11), }; @@ -295,7 +295,7 @@ impl<'a> Sampler<'a> { }; let ground_block = if let Some(block) = ground_block { // Underground - let cave = cave_xy * (wposf.z as f32 - cave_alt).div(180.0).powf(2.0).neg().add(1.0) > 0.9995; + let cave = cave_xy.powf(2.0) * (wposf.z as f32 - cave_alt).div(20.0).powf(4.0).neg().add(1.0) > 0.9994; if cave { None