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.90 by greg, Wed Nov 15 18:02:52 2023 UTC vs.
Revision 2.91 by greg, Fri Nov 17 20:02:07 2023 UTC

# Line 719 | Line 719 | doambient(                             /* compute ambient component */
719                  free(hp);               /* Hessian not requested/possible */
720                  return(-1);             /* value-only return value */
721          }
722 <        if ((d = scolor_photopic(rcol)) > FTINY) {
723 <                d = 0.99*(hp->ns*hp->ns)/d;     /* normalize Y values */
722 >        if ((d = scolor_mean(rcol)) > FTINY) {
723 >                d = 0.99*(hp->ns*hp->ns)/d;     /* normalize avg. values */
724                  K = 0.01;
725          } else {                        /* or fall back on geometric Hessian */
726                  K = 1.0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines