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

Comparing ray/src/rt/ambcomp.c (file contents):
Revision 2.75 by greg, Sat Oct 15 14:54:39 2016 UTC vs.
Revision 2.76 by greg, Thu Jan 26 16:46:58 2017 UTC

# Line 137 | Line 137 | resample:
137          if (ar.rt*ap->d < 1.0)          /* new/closer distance? */
138                  ap->d = 1.0/ar.rt;
139          if (!n) {                       /* record first vertex & value */
140 <                if (ar.rt > 10.0*thescene.cusize)
141 <                        ar.rt = 10.0*thescene.cusize;
140 >                if (ar.rt > 10.0*thescene.cusize + 1000.)
141 >                        ar.rt = 10.0*thescene.cusize + 1000.;
142                  VSUM(ap->p, ar.rorg, ar.rdir, ar.rt);
143                  copycolor(ap->v, ar.rcol);
144          } else {                        /* else update recorded value */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines