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.15 by greg, Thu Mar 8 10:28:29 1990 UTC

# Line 147 | Line 147 | int  xmin, ymin, xmax, ymax;
147                  return;
148          }
149                                                  /* jitter ray direction */
150 <        p->x = h = xmin + (xmax-xmin)*frandom();
151 <        h /= hresolu;
152 <        p->y = v = ymin + (ymax-ymin)*frandom();
153 <        v /= vresolu;
150 >        h = xmin + (xmax-xmin)*frandom();
151 >        v = ymin + (ymax-ymin)*frandom();
152          
153 <        viewray(thisray.rorg, thisray.rdir, &ourview, h, v);
156 <
153 >        viewray(thisray.rorg, thisray.rdir, &ourview, h/hresolu, v/vresolu);
154          rayorigin(&thisray, NULL, PRIMARY, 1.0);
158        
155          rayvalue(&thisray);
156  
157 +        p->x = h;
158 +        p->y = v;
159          copycolor(p->v, thisray.rcol);
162
160          scalecolor(p->v, exposure);
161  
162          (*dev->paintr)(greyscale?greyof(p->v):p->v, xmin, ymin, xmax, ymax);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines