mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Removed old cliff code
This commit is contained in:
parent
fffef7c739
commit
693d59cc93
@ -106,44 +106,6 @@ impl<'a> SamplerMut for BlockGen<'a> {
|
||||
let wpos_turb = Vec2::from(wpos) + turb.map(|e| e as i32);
|
||||
let cliff_height = self.get_cliff_height(wpos_turb, &close_cliffs, cliff_hill);
|
||||
|
||||
/*
|
||||
let is_cliff = if cliff > 0.0 {
|
||||
(self
|
||||
.world
|
||||
.sim()
|
||||
.gen_ctx
|
||||
.warp_nz
|
||||
.get((wposf.div(Vec3::new(300.0, 300.0, 1500.0))).into_array()) as f32)
|
||||
* cliff
|
||||
> 0.3
|
||||
} else {
|
||||
false
|
||||
};
|
||||
|
||||
let cliff = if is_cliff {
|
||||
(0.0 + (self
|
||||
.world
|
||||
.sim()
|
||||
.gen_ctx
|
||||
.warp_nz
|
||||
.get((wposf.div(Vec3::new(350.0, 350.0, 800.0))).into_array())
|
||||
as f32)
|
||||
* 0.8
|
||||
+ (self
|
||||
.world
|
||||
.sim()
|
||||
.gen_ctx
|
||||
.warp_nz
|
||||
.get((wposf.div(Vec3::new(100.0, 100.0, 70.0))).into_array())
|
||||
as f32)
|
||||
* 0.3)
|
||||
.add(0.4)
|
||||
.mul(75.0)
|
||||
} else {
|
||||
0.0
|
||||
};
|
||||
*/
|
||||
|
||||
let height = (alt + warp).max(cliff_height);
|
||||
let water_height = water_level + warp;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user