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

Comparing ray/src/rt/rv3.c (file contents):
Revision 1.14 by greg, Tue Feb 27 09:51:00 1990 UTC vs.
Revision 1.16 by greg, Tue Jun 26 09:00:19 1990 UTC

# Line 138 | Line 138 | int  xmin, ymin, xmax, ymax;
138          static long  lastflush = 0;
139          static RAY  thisray;
140          double  h, v;
141        register int  i;
141  
142          if (xmax - xmin <= 0 || ymax - ymin <= 0) {     /* empty */
143                  p->x = xmin;
# Line 147 | Line 146 | int  xmin, ymin, xmax, ymax;
146                  return;
147          }
148                                                  /* jitter ray direction */
149 <        p->x = h = xmin + (xmax-xmin)*frandom();
150 <        h /= hresolu;
152 <        p->y = v = ymin + (ymax-ymin)*frandom();
153 <        v /= vresolu;
149 >        h = xmin + (xmax-xmin)*frandom();
150 >        v = ymin + (ymax-ymin)*frandom();
151          
152 <        viewray(thisray.rorg, thisray.rdir, &ourview, h, v);
156 <
152 >        viewray(thisray.rorg, thisray.rdir, &ourview, h/hresolu, v/vresolu);
153          rayorigin(&thisray, NULL, PRIMARY, 1.0);
158        
154          rayvalue(&thisray);
155  
156 +        p->x = h;
157 +        p->y = v;
158          copycolor(p->v, thisray.rcol);
162
159          scalecolor(p->v, exposure);
160  
161          (*dev->paintr)(greyscale?greyof(p->v):p->v, xmin, ymin, xmax, ymax);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines