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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.16 by greg, Fri Dec 23 15:42:55 1994 UTC vs.
Revision 2.17 by greg, Fri Dec 23 17:23:05 1994 UTC

# Line 738 | Line 738 | clipaft()                      /* perform aft clipping as indicated */
738  
739          if (ourview.vaft <= FTINY)
740                  return;
741 <        tstdist = ourview.vaft;
741 >        tstdist = ourview.vaft - ourview.vfore;
742          for (y = 0; y < vresolu; y++) {
743                  if (ourview.type == VT_PER) {           /* adjust distance */
744                          yzn2 = (y+.5)/vresolu + ourview.voff - .5;
745                          yzn2 = 1. + yzn2*yzn2*ourview.vn2;
746 <                        tstdist = ourview.vaft * sqrt(yzn2);
746 >                        tstdist = (ourview.vaft - ourview.vfore)*sqrt(yzn2);
747                  }
748                  for (x = 0; x < hresolu; x++)
749                          if (zscan(y)[x] > tstdist) {
750                                  if (ourview.type == VT_PER) {
751                                          vx = (x+.5)/hresolu + ourview.hoff - .5;
752 <                                        if (zscan(y)[x] <= ourview.vaft *
752 >                                        if (zscan(y)[x] <= (ourview.vaft -
753 >                                                        ourview.vfore) *
754                                                  sqrt(vx*vx*ourview.hn2 + yzn2))
755                                                  continue;
756                                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines