From: Alexis Laferrière Date: Sun, 26 Jul 2015 11:37:56 +0000 (-0400) Subject: lib/noise: fix missing doubling of the permutation array X-Git-Url: http://nitlanguage.org lib/noise: fix missing doubling of the permutation array Signed-off-by: Alexis Laferrière --- 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