--- ray/src/common/multisamp.c 1991/11/12 16:56:06 2.1 +++ ray/src/common/multisamp.c 1997/12/01 09:54:59 2.2 @@ -1,9 +1,11 @@ -/* Copyright (c) 1991 Regents of the University of California */ +/* Copyright (c) 1997 Silicon Graphics, Inc. */ #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static char SCCSid[] = "$SunId$ SGI"; #endif +#include "random.h" + /* * Binary space partitioning curve for multidimensional sampling. * @@ -33,5 +35,5 @@ double r; /* 1-dimensional sample [0,1) */ } i = n; while (i-- > 0) - t[i] = 1./256. * ti[i]; + t[i] = 1./256. * (ti[i] + frandom()); }