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.81 by greg, Mon May 11 21:46:31 2009 UTC vs.
Revision 2.83 by greg, Fri Sep 3 21:16:50 2010 UTC

# Line 51 | Line 51 | int  dimlist[MAXDIM];                  /* sampling dimensions */
51   int  ndims = 0;                         /* number of sampling dimensions */
52   int  samplendx;                         /* sample index number */
53  
54 //extern void  ambnotify();
54   void  (*addobjnotify[])() = {ambnotify, NULL};
55  
56   VIEW  ourview = STDVIEW;                /* view parameters */
# Line 119 | Line 118 | int  hres, vres;                       /* resolution for this frame */
118  
119   static VIEW     lastview;               /* the previous view input */
120  
122 //extern char  *mktemp();  /* XXX should be in stdlib.h or unistd.h */
123
124 //double        pixvalue();
125
121   static void report(int);
122   static int nextview(FILE *fp);
123   static void render(char *zfile, char *oldfile);
# Line 701 | Line 696 | pixvalue(              /* compute pixel value */
696          if (dblur > FTINY && vdist > FTINY) {
697                  double  vc, dfh, dfv;
698                                                  /* square/circle conv. */
699 <                dfh = vc = frandom();
700 <                dfv = frandom();
699 >                dfh = vc = 1. - 2.*frandom();
700 >                dfv = 1. - 2.*frandom();
701                  dfh *= .5*dblur*sqrt(1. - .5*dfv*dfv);
702                  dfv *= .5*dblur*sqrt(1. - .5*vc*vc);
703                  if (ourview.type == VT_PER || ourview.type == VT_PAR) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines