From 7956d46d441044521728fb8e565f57451372fe88 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sun, 26 Jul 2015 07:37:56 -0400 Subject: [PATCH] lib/noise: fix missing doubling of the permutation array MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/noise.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/noise.nit b/lib/noise.nit index 4e42820..cf4d0fa 100644 --- a/lib/noise.nit +++ b/lib/noise.nit @@ -385,7 +385,7 @@ class ImprovedNoise 129,22,39,253, 19,98,108,110,79,113,224,232,178,185, 112,104,218,246,97,228, 251,34,242,193,238,210,144,12,191,179,162,241, 81,51,145,235,249,14,239,107, 49,192,214, 31,181,199,106,157,184, 84,204,176,115,121,50,45,127, 4,150,254, - 138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180] + 138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180] * 2 # Noise value in [-1..1] at 3D coordinates `x, y, z` fun noise(x, y, z: Float): Float -- 1.7.9.5