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.7 by greg, Wed Jun 7 22:22:40 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;
# Line 450 | Line 450 | register char  *s;
450                          }
451                          dstrsrc = d0;
452                          break;
453 <                case 't':                       /* threshold */
453 >                case 't':                       /* tolerance */
454                          if (sscanf(s+2, "%lf", &d0) != 1) {
455 <                                sprintf(buf, "direct threshold (%.6g): ",
455 >                                sprintf(buf, "direct tolerance (%.6g): ",
456                                                  shadthresh);
457                                  (*dev->comout)(buf);
458                                  (*dev->comin)(buf);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines