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.49 by greg, Tue Dec 12 15:13:32 1995 UTC vs.
Revision 2.50 by greg, Fri Jan 5 14:43:03 1996 UTC

# Line 535 | Line 535 | ambval()                               /* compute ambient value */
535   {
536          if (vdef(EXPOSURE)) {
537                  if (vval(EXPOSURE)[0] == '+' || vval(EXPOSURE)[0] == '-')
538 <                        return(.5/pow(2.,atof(vval(EXPOSURE))));
539 <                return(.5/atof(vval(EXPOSURE)));
538 >                        return(.5/pow(2.,vflt(EXPOSURE)));
539 >                return(.5/vflt(EXPOSURE));
540          }
541          if (vlet(ZONE) == 'E')
542                  return(10.);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines