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

Comparing ray/src/hd/rhpict2.c (file contents):
Revision 3.15 by schorsch, Thu Jan 1 11:21:55 2004 UTC vs.
Revision 3.16 by greg, Wed Jan 24 04:39:52 2018 UTC

# Line 99 | Line 99 | pixBeam(                       /* render a particular beam */
99                          VSUM(wp, myview.vp, rdir, FHUGE);
100                          prox = 1.;
101                  }
102 <                viewloc(ip, &myview, wp);       /* frustum clipping */
103 <                if (ip[2] < 0.)
104 <                        continue;
105 <                if (ip[0] < 0. || ip[0] >= 1.)
106 <                        continue;
107 <                if (ip[1] < 0. || ip[1] >= 1.)
108 <                        continue;
102 >                if (viewloc(ip, &myview, wp) != 1)
103 >                        continue;               /* frustum clipping */
104                  if (myview.vaft > FTINY && ip[2] > myview.vaft - myview.vfore)
105                          continue;               /* not exact for VT_PER */
106                  p = (int)(ip[1]*vres)*hres + (int)(ip[0]*hres);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines