mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed broken savannah pit altitude
This commit is contained in:
parent
84e59c52fb
commit
5418f49ecb
@ -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)
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user