| H A D | prog_noise.c | 79 static const unsigned char perm[512] = { 151, 160, 137, 91, 90, 15, variable in typeref:typename:const unsigned char[512] 225 n0 = t0 * t0 * grad1(perm[i0 & 0xff], x0); 229 n1 = t1 * t1 * grad1(perm[i1 & 0xff], x1); 284 /* Wrap the integer indices at 256, to avoid indexing perm[] out of bounds */ 294 n0 = t0 * t0 * grad2(perm[ii + perm[jj]], x0, y0); 302 n1 = t1 * t1 * grad2(perm[ii + i1 + perm[jj + j1]], x1, y1); 310 n2 = t2 * t2 * grad2(perm[ii + 1 + perm[j [all...] |