8#define SAMPLE_SIZE 1024
14 Perlin(
int octaves,
float freq,
float amp,
int seed);
17 float Get(
float x,
float y)
22 return perlin_noise_2D(vec);
26 void init_perlin(
int n,
float p);
27 float perlin_noise_2D(
float vec[2]);
29 float noise1(
float arg);
30 float noise2(
float vec[2]);
31 float noise3(
float vec[3]);
32 void normalize2(
float v[2]);
33 void normalize3(
float v[3]);
41 int p[SAMPLE_SIZE + SAMPLE_SIZE + 2];
42 float g3[SAMPLE_SIZE + SAMPLE_SIZE + 2][3];
43 float g2[SAMPLE_SIZE + SAMPLE_SIZE + 2][2];
44 float g1[SAMPLE_SIZE + SAMPLE_SIZE + 2];