mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Removed second cave layer
This commit is contained in:
parent
f35739ed30
commit
e766bdf412
@ -202,11 +202,11 @@ impl<'a> Sampler<'a> {
|
||||
|
||||
// Caves
|
||||
let cave_at = |wposf: Vec2<f64>| (sim.gen_ctx.cave_0_nz.get(Vec3::new(wposf.x, wposf.y, alt as f64 * 8.0).div(1000.0).into_array()) as f32)
|
||||
.powf(2.0)
|
||||
.powf(2.5)
|
||||
.neg()
|
||||
.add(1.0)
|
||||
.mul((1.2 - chaos).min(1.0));
|
||||
let cave_xy = cave_at(wposf).max(cave_at(-wposf));
|
||||
let cave_xy = cave_at(wposf);
|
||||
let cave_alt = alt - 32.0
|
||||
+ (sim.gen_ctx.cave_1_nz.get(Vec2::new(wposf.x, wposf.y).div(48.0).into_array()) as f32) * 8.0
|
||||
+ (sim.gen_ctx.cave_1_nz.get(Vec2::new(wposf.x, wposf.y).div(300.0).into_array()) as f32).add(1.0).mul(0.5).powf(8.0).mul(256.0);
|
||||
|
Loading…
Reference in New Issue
Block a user