Fixed broken savannah pit altitude

This commit is contained in:
Joshua Barretto 2023-11-02 14:48:10 +00:00 committed by Christof Petig
parent 84e59c52fb
commit 5418f49ecb
2 changed files with 2 additions and 4 deletions

View File

@ -1177,7 +1177,7 @@ impl<'a> Sampler<'a> for ColumnGen<'a> {
let basement = Lerp::lerp(
basement,
alt,
(mesa * (marble_mixed - 0.35) * 1.5).clamped(0.0, 1.0),
(mesa * (marble_mixed - 0.35) * 1.5).clamped(0.0, 1.0) * warp_factor,
);
(sub_surface_color, ground, alt, basement)

View File

@ -27,9 +27,7 @@ impl SavannahPit {
};
Self {
bounds,
alt: land.get_alt_approx(site.tile_center_wpos((tile_aabr.max - tile_aabr.min) / 2))
as i32
+ 2,
alt: land.get_alt_approx(site.tile_center_wpos(tile_aabr.center())) as i32 + 2,
}
}
}