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.8 by greg, Thu Jun 8 17:04: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 404 | Line 404 | register char  *s;
404          char  buf[128];
405          
406          if (s[0] == '\0') {
407 <                (*dev->comout)("aa ab ad ar as av dj dt lr lw sd sp: ");
407 >                (*dev->comout)("aa ab ad ar as av dj dt lr lw sp st: ");
408                  (*dev->comin)(buf);
409                  s = buf;
410          }
# Line 555 | Line 555 | register char  *s;
555                          psample = i0;
556                          pdepth = 0;
557                          break;
558 <                case 'd':                       /* difference */
558 >                case 't':                       /* threshold */
559                          if (sscanf(s+2, "%lf", &d0) != 1) {
560 <                                sprintf(buf, "sample difference (%.6g): ",
560 >                                sprintf(buf, "sample threshold (%.6g): ",
561                                                  maxdiff);
562                                  (*dev->comout)(buf);
563                                  (*dev->comin)(buf);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines