From 53d5cada93a8c06a764c701962b7473f01b2895c Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sat, 22 Jun 2019 23:40:41 +0100 Subject: [PATCH] Better paths --- world/src/column/mod.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/world/src/column/mod.rs b/world/src/column/mod.rs index 20027229ab..8e52c2e231 100644 --- a/world/src/column/mod.rs +++ b/world/src/column/mod.rs @@ -134,16 +134,10 @@ impl<'a> Sampler for ColumnGen<'a> { .abs() .div(near_0.distance(near_1)); - let alt = if dist_to_path < 15.0 { - alt - 100.0 + let (alt, ground) = if dist_to_path < 5.0 { + (alt - 1.5, Rgb::new(0.4, 0.25, 0.0)) } else { - alt - }; - - let ground = if dist_to_path < 5.0 { - Rgb::new(0.0, 0.0, 0.0) - } else { - ground + (alt, ground) }; // Caves