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 2.6 by greg, Tue Dec 20 20:18:41 1994 UTC vs.
Revision 2.7 by greg, Thu Dec 22 11:46:19 1994 UTC

# Line 404 | Line 404 | FVECT  vc;
404                  d = 0.0;                        /* don't move closer */
405                  for (i = 0; i < 3; i++)
406                          d += (vc[i] - ourview.vp[i])*ourview.vdir[i];
407 +                nv.vfore = ourview.vfore;
408 +                nv.vaft = ourview.vaft;
409          } else {
410                  nv.horiz = ourview.horiz;
411                  nv.vert = ourview.vert;
412                  d = sqrt(dist2(ourview.vp, vc)) / mag;
413 +                nv.vfore = ourview.vfore + d - d*mag;
414 +                if (nv.vfore < 0.0) nv.vfore = 0.0;
415 +                nv.vaft = ourview.vaft + d - d*mag;
416 +                if (nv.vaft < nv.vfore) nv.vaft = 0.0;
417          }
418          for (i = 0; i < 3; i++)
419                  nv.vp[i] = vc[i] - d*nv.vdir[i];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines