mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Update fast_noise.rs
This commit is contained in:
parent
99005c1d30
commit
cbf1267e97
@ -14,7 +14,7 @@ impl FastNoise {
|
||||
}
|
||||
|
||||
fn noise_at(&self, pos: Vec3<i32>) -> f32 {
|
||||
(self.noise.get(pos) % 4096) as f32 / 4096.0
|
||||
(self.noise.get(pos) & 4095) as f32 * 0.000244140625
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user