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

Comparing ray/src/util/rad.c (file contents):
Revision 2.126 by greg, Tue Feb 26 23:31:11 2019 UTC vs.
Revision 2.128 by greg, Thu Jan 21 21:36:28 2021 UTC

# Line 790 | Line 790 | ambval(void)                           /* compute ambient value */
790   {
791          if (vdef(EXPOSURE)) {
792                  if (vval(EXPOSURE)[0] == '+' || vval(EXPOSURE)[0] == '-')
793 <                        return(.5/pow(2.,vflt(EXPOSURE)));
794 <                return(.5/vflt(EXPOSURE));
793 >                        return(.18/pow(2.,vflt(EXPOSURE)));
794 >                return(.18/vflt(EXPOSURE));
795          }
796          if (vlet(ZONE) == 'E')
797                  return(10.);
# Line 834 | Line 834 | renderopts(                    /* set rendering options */
834                  op = addarg(addarg(op, "-ap"), pmapf);
835                  if (atoi(bw) > 0) op = addarg(op, bw);
836          }
837 <        if (vdef(RENDER))
837 >        if (vdef(RENDER)) {
838                  op = addarg(op, vval(RENDER));
839 +                bw = strstr(vval(RENDER), "-aa ");
840 +                if (bw != NULL && atof(bw+4) <= FTINY)
841 +                        overture = 0;
842 +        }
843          if (rvdevice != NULL) {
844                  if (vdef(RVU)) {
845                          if (vval(RVU)[0] != '-') {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines