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.6 by greg, Tue Apr 23 11:06:54 1996 UTC vs.
Revision 2.7 by gwlarson, Wed Jun 24 09:35:00 1998 UTC

# Line 84 | Line 84 | RAY  *r;
84          rayvalue(&ar);
85          ndims--;
86          addcolor(dp->v, ar.rcol);
87 <        if (ar.rt > FTINY && ar.rt < FHUGE)
88 <                dp->r += 1.0/ar.rt;
87 >                                        /* be conservative and use rot */
88 >        if (ar.rot > FTINY && ar.rot < FHUGE)
89 >                dp->r += 1.0/ar.rot;
90                                          /* (re)initialize error */
91          if (dp->n++) {
92                  b2 = bright(dp->v)/dp->n - bright(ar.rcol);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines