mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
No walls outside caves
This commit is contained in:
parent
61792d4135
commit
07fc53f9bc
@ -116,7 +116,7 @@ impl Tunnel {
|
|||||||
let radius = Lerp::lerp(
|
let radius = Lerp::lerp(
|
||||||
radius.start,
|
radius.start,
|
||||||
radius.end,
|
radius.end,
|
||||||
(nz.get((wposf / 200.0).into_array()) * 2.0 * 0.5 + 0.5)
|
(nz.get((wposf.with_z(self.a.wpos.z as f64) / 200.0).into_array()) * 2.0 * 0.5 + 0.5)
|
||||||
.clamped(0.0, 1.0)
|
.clamped(0.0, 1.0)
|
||||||
.powf(3.0),
|
.powf(3.0),
|
||||||
); // Lerp::lerp(8.0, 24.0, (t * 0.075 * tunnel_len).sin() * 0.5 + 0.5);
|
); // Lerp::lerp(8.0, 24.0, (t * 0.075 * tunnel_len).sin() * 0.5 + 0.5);
|
||||||
@ -696,6 +696,7 @@ fn write_column<R: Rng>(
|
|||||||
.min(h - 2)
|
.min(h - 2)
|
||||||
&& z < bedrock + h
|
&& z < bedrock + h
|
||||||
&& radius > 25.0
|
&& radius > 25.0
|
||||||
|
&& !sky_above
|
||||||
} {
|
} {
|
||||||
Block::new(BlockKind::Rock, col.stone_col)
|
Block::new(BlockKind::Rock, col.stone_col)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user