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

Comparing ray/src/rt/rv2.c (file contents):
Revision 1.5 by greg, Wed Jun 7 08:35:26 1989 UTC vs.
Revision 1.6 by greg, Wed Jun 7 08:38:35 1989 UTC

# Line 369 | Line 369 | char  *s;
369                          e *= atof(cp);
370          }
371          if (p != NULL) {                /* relative setting */
372 <                if (intens(p->v) <= FTINY) {
372 >                if (bright(p->v) <= FTINY) {
373                          error(COMMAND, "cannot normalize to zero");
374                          return;
375                  }
376 <                e *= 0.5 / intens(p->v);
376 >                e *= 0.5 / bright(p->v);
377          }
378          if (e <= FTINY || fabs(1.0 - e) <= FTINY)
379                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines