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
772e85fbea
commit
f39d454f93
@ -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…
Reference in New Issue
Block a user