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

Comparing ray/src/util/glareval.c (file contents):
Revision 2.14 by greg, Wed Oct 10 21:41:02 2012 UTC vs.
Revision 2.15 by greg, Wed Jan 24 04:39:52 2018 UTC

# Line 177 | Line 177 | pict_val(                      /* find picture value for view direction *
177          pp[0] = pictview.vp[0] + vd[0];
178          pp[1] = pictview.vp[1] + vd[1];
179          pp[2] = pictview.vp[2] + vd[2];
180 <        viewloc(ip, &pictview, pp);
181 <        if (ip[2] <= FTINY || ip[0] < 0. || ip[0] >= 1. ||
182 <                        ip[1] < 0. || ip[1] >= 1.)
180 >        if (viewloc(ip, &pictview, pp) != 1)
181                  return(-1.0);
182          colr_color(res, getpictscan((int)(ip[1]*pysiz))[(int)(ip[0]*pxsiz)]);
183          return(luminance(res)/exposure);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines