ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/multisamp.c
(Generate patch)

Comparing ray/src/common/multisamp.c (file contents):
Revision 2.1 by greg, Tue Nov 12 16:56:06 1991 UTC vs.
Revision 2.2 by gregl, Mon Dec 1 09:54:59 1997 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1997 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4 < static char SCCSid[] = "$SunId$ LBL";
4 > static char SCCSid[] = "$SunId$ SGI";
5   #endif
6  
7 + #include "random.h"
8 +
9   /*
10   * Binary space partitioning curve for multidimensional sampling.
11   *
# Line 33 | Line 35 | double r;                      /* 1-dimensional sample [0,1) */
35          }
36          i = n;
37          while (i-- > 0)
38 <                t[i] = 1./256. * ti[i];
38 >                t[i] = 1./256. * (ti[i] + frandom());
39   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines