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

Comparing ray/src/rt/rpict.c (file contents):
Revision 1.24 by greg, Tue Apr 9 09:31:01 1991 UTC vs.
Revision 1.25 by greg, Tue May 21 17:41:35 1991 UTC

# Line 24 | Line 24 | static char SCCSid[] = "$SunId$ LBL";
24  
25   #include  "random.h"
26  
27 + int  dimlist[MAXDIM];                   /* sampling dimensions */
28 + int  ndims = 0;                         /* number of sampling dimensions */
29 + int  samplendx;                         /* sample index number */
30 +
31   VIEW  ourview = STDVIEW;                /* view parameters */
32   int  hresolu = 512;                     /* horizontal resolution */
33   int  vresolu = 512;                     /* vertical resolution */
# Line 32 | Line 36 | double  pixaspect = 1.0;               /* pixel aspect ratio */
36   int  psample = 4;                       /* pixel sample size */
37   double  maxdiff = .05;                  /* max. difference for interpolation */
38   double  dstrpix = 0.67;                 /* square pixel distribution */
39 + int  psuper = 2;                        /* pixel super-sampling rate */
40  
41   double  dstrsrc = 0.0;                  /* square source distribution */
42   double  shadthresh = .05;               /* shadow threshold */
# Line 333 | Line 338 | pixvalue(col, x, y)            /* compute pixel value */
338   COLOR  col;                     /* returned color */
339   int  x, y;                      /* pixel position */
340   {
341 <        static RAY  thisray;    /* our ray for this pixel */
341 >        static RAY  thisray;
342  
343          if (viewray(thisray.rorg, thisray.rdir, &ourview,
344                          (x+pixjitter())/hresolu, (y+pixjitter())/vresolu) < 0) {
# Line 342 | Line 347 | int  x, y;                     /* pixel position */
347          }
348  
349          rayorigin(&thisray, NULL, PRIMARY, 1.0);
350 <        
350 >
351 >        samplendx = 3*y + x;                    /* set pixel index */
352 >
353          rayvalue(&thisray);                     /* trace ray */
354  
355          copycolor(col, thisray.rcol);           /* return color */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines