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.7 by greg, Thu Dec 22 11:46:19 1994 UTC vs.
Revision 2.8 by greg, Wed Jan 25 16:08:57 1995 UTC

# Line 410 | Line 410 | FVECT  vc;
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;
413 >                if ((nv.vfore = ourview.vfore) > FTINY) {
414 >                        nv.vfore += d - d*mag;
415 >                        if (nv.vfore < 0.0) nv.vfore = 0.0;
416 >                }
417 >                if ((nv.vaft = ourview.vaft) > FTINY) {
418 >                        nv.vaft += d - d*mag;
419 >                        if (nv.vaft <= nv.vfore) nv.vaft = 0.0;
420 >                }
421          }
422          for (i = 0; i < 3; i++)
423                  nv.vp[i] = vc[i] - d*nv.vdir[i];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines