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 2.75 by greg, Tue Apr 19 01:15:06 2005 UTC vs.
Revision 2.76 by greg, Mon Jun 13 20:07:56 2005 UTC

# Line 67 | Line 67 | void  (*trace)() = NULL;               /* trace call */
67  
68   int  do_irrad = 0;                      /* compute irradiance? */
69  
70 + int  rand_samp = 0;                     /* pure Monte Carlo sampling? */
71 +
72   double  dstrsrc = 0.0;                  /* square source distribution */
73   double  shadthresh = .05;               /* shadow threshold */
74   double  shadcert = .5;                  /* shadow certainty */
# Line 676 | Line 678 | pixvalue(              /* compute pixel value */
678          }
679          vdist = ourview.vdist;
680  
681 <        samplendx = pixnumber(x,y,hres,vres);   /* set pixel index */
681 >        if (rand_samp)                          /* set pixel index */
682 >                samplendx = random();
683 >        else
684 >                samplendx = pixnumber(x,y,hres,vres);
685  
686                                                  /* optional motion blur */
687          if (lastview.type && mblur > FTINY && (lmax = viewray(lorg, ldir,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines