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.86 by greg, Wed Feb 17 01:29:22 2021 UTC vs.
Revision 2.87 by greg, Sun Dec 12 19:55:43 2021 UTC

# Line 765 | Line 765 | doambient(                             /* compute ambient component */
765                                  ra[0] = maxarad;
766                  }
767                                          /* flag encroached directions */
768 <                if (crlp != NULL)
768 >                if (crlp != NULL)       /* XXX doesn't update with changes to ambacc */
769                          *crlp = ambcorral(hp, uv, ra[0]*ambacc, ra[1]*ambacc);
770                  if (pg != NULL) {       /* cap gradient if necessary */
771                          d = pg[0]*pg[0]*ra[0]*ra[0] + pg[1]*pg[1]*ra[1]*ra[1];
# Line 779 | Line 779 | doambient(                             /* compute ambient component */
779          free(hp);                       /* clean up and return */
780          return(1);
781   }
782

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines