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 2.12 by greg, Thu Oct 15 21:13:14 1992 UTC vs.
Revision 2.15 by greg, Mon Mar 8 12:37:35 1993 UTC

# Line 287 | Line 287 | char  *s;
287                          for (cp++; isspace(*cp); cp++)
288                                  ;
289                          if (*cp == '\0') {      /* interactive */
290 <                                sprintf(buf, "exposure (%lf): ", exposure);
290 >                                sprintf(buf, "exposure (%f): ", exposure);
291                                  (*dev->comout)(buf);
292                                  (*dev->comin)(buf, NULL);
293                                  for (cp = buf; isspace(*cp); cp++)
# Line 305 | Line 305 | char  *s;
305                          e *= atof(cp);
306          }
307          if (p != NULL) {                /* relative setting */
308 <                if (bright(p->v) < 1e-25) {
308 >                if (bright(p->v) < 1e-15) {
309                          error(COMMAND, "cannot normalize to zero");
310                          return;
311                  }
# Line 398 | Line 398 | register char  *s;
398          extern int  ambdiv;
399          extern int  ambssamp;
400          extern int  ambounce;
401 <        extern int  directinvis;
401 >        extern int  directvis;
402          extern double  srcsizerat;
403          extern int  do_irrad;
404          extern double  specjitter;
# Line 435 | Line 435 | register char  *s;
435                  case 't':                       /* threshold */
436                          getparam(s+2, "direct threshold", 'r', &shadthresh);
437                          break;
438 <                case 'i':                       /* invisibility */
439 <                        getparam(s+2, "direct invisibility",
440 <                                        'b', &directinvis);
438 >                case 'v':                       /* visibility */
439 >                        getparam(s+2, "direct visibility",
440 >                                        'b', &directvis);
441                          break;
442                  case 's':                       /* sampling */
443                          getparam(s+2, "direct sampling", 'r', &srcsizerat);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines