--- ray/src/rt/noise3.c 1991/11/12 17:09:23 2.1 +++ ray/src/rt/noise3.c 1993/08/09 10:03:45 2.4 @@ -14,6 +14,7 @@ static char SCCSid[] = "$SunId$ LBL"; * 5/19/88 Added fractal noise function */ +#include #define A 0 #define B 1 @@ -40,11 +41,12 @@ static char fnoise_name[] = "fnoise3"; static char hermite_name[] = "hermite"; double *noise3(), fnoise3(), argument(), frand(); +static interpolate(); static long xlim[3][2]; static double xarg[3]; -#define EPSILON .0001 /* error allowed in fractal */ +#define EPSILON .001 /* error allowed in fractal */ #define frand3(x,y,z) frand(17*(x)+23*(y)+29*(z)) @@ -99,7 +101,6 @@ double * noise3(xnew) /* compute the noise function */ register double xnew[3]; { - extern double floor(); static double x[3] = {-100000.0, -100000.0, -100000.0}; static double f[4]; @@ -156,7 +157,6 @@ double fnoise3(p) /* compute fractal noise function */ double p[3]; { - double floor(); long t[3], v[3], beg[3]; double fval[8], fc; int branch;