Skip to content

Commit

Permalink
perf: changed default setting of ambient value
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Jan 21, 2021
1 parent 5deca59 commit 93db192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/rad.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: rad.c,v 2.127 2020/04/07 00:49:09 greg Exp $";
static const char RCSid[] = "$Id: rad.c,v 2.128 2021/01/21 21:36:28 greg Exp $";
#endif
/*
* Executive program for oconv, rpict and pfilt
Expand Down Expand Up @@ -790,8 +790,8 @@ ambval(void) /* compute ambient value */
{
if (vdef(EXPOSURE)) {
if (vval(EXPOSURE)[0] == '+' || vval(EXPOSURE)[0] == '-')
return(.5/pow(2.,vflt(EXPOSURE)));
return(.5/vflt(EXPOSURE));
return(.18/pow(2.,vflt(EXPOSURE)));
return(.18/vflt(EXPOSURE));
}
if (vlet(ZONE) == 'E')
return(10.);
Expand Down

0 comments on commit 93db192

Please sign in to comment.