Update fast_noise.rs

This commit is contained in:
Acrimon 2019-09-06 11:05:05 +00:00 committed by Forest
parent 772e85fbea
commit f39d454f93

View File

@ -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
}
}