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

Comparing ray/src/util/vwrays.c (file contents):
Revision 3.22 by greg, Fri Dec 3 17:22:28 2021 UTC vs.
Revision 3.23 by greg, Sat Dec 4 16:29:29 2021 UTC

# Line 27 | Line 27 | double pa = 1.;
27  
28   double  pj = 0.;
29  
30 + double  pd = 0.;
31 +
32   int     zfd = -1;
33  
34   int     fromstdin = 0;
# Line 113 | Line 115 | main(
115                                  pa = atof(argv[++i]);
116                          else if (argv[i][2] == 'j')
117                                  pj = atof(argv[++i]);
118 +                        else if (argv[i][2] == 'd')
119 +                                pd = atof(argv[++i]);
120                          else
121                                  goto userr;
122                          break;
# Line 212 | Line 216 | pix2rays(
216                  for (c = repeatcnt; c-- > 0; ) {
217                          jitterloc(loc);
218                          d = viewray(rorg, rdir, &vw, loc[0], loc[1]);
219 <                        if (d < -FTINY)
219 >                        if (d < -FTINY || !jitteraperture(rorg, rdir, &vw, pd))
220                                  rorg[0] = rorg[1] = rorg[2] =
221                                  rdir[0] = rdir[1] = rdir[2] = 0.;
222                          else if (zfd >= 0)
# Line 269 | Line 273 | putrays(void)
273                          pix2loc(loc, &rs, si, sc);
274                          jitterloc(loc);
275                          d = viewray(rorg, rdir, &vw, loc[0], loc[1]);
276 <                        if (d < -FTINY)
276 >                        if (d < -FTINY || !jitteraperture(rorg, rdir, &vw, pd))
277                                  rorg[0] = rorg[1] = rorg[2] =
278                                  rdir[0] = rdir[1] = rdir[2] = 0.;
279                          else if (zfd >= 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines