lib/noise: fix missing doubling of the permutation array
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 26 Jul 2015 11:37:56 +0000 (07:37 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sun, 22 May 2016 14:45:03 +0000 (10:45 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/noise.nit

index 4e42820..cf4d0fa 100644 (file)
@@ -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