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

Comparing ray/src/rt/rmain.c (file contents):
Revision 1.38 by greg, Tue Jun 18 10:29:20 1991 UTC vs.
Revision 1.39 by greg, Wed Jun 19 16:36:41 1991 UTC

# Line 85 | Line 85 | extern double  dstrpix;                        /* square pixel distribution
85   extern double  dstrsrc;                 /* square source distribution */
86   extern double  shadthresh;              /* shadow threshold */
87   extern double  shadcert;                /* shadow testing certainty */
88 + extern int  directrelay;                /* number of source relays */
89  
90   extern int  maxdepth;                   /* maximum recursion depth */
91   extern double  minweight;               /* minimum ray weight */
# Line 183 | Line 184 | char  *argv[];
184                                  check(3,1);
185                                  dstrsrc = atof(argv[++i]);
186                                  break;
187 +                        case 'r':
188 +                                check(3,1);
189 +                                directrelay = atoi(argv[++i]);
190 +                                break;
191                          default:
192                                  goto badopt;
193                          }
# Line 581 | Line 586 | printdefaults()                        /* print default values to stdout */
586          printf("-dt %f\t\t\t# direct threshold\n", shadthresh);
587          printf("-dc %f\t\t\t# direct certainty\n", shadcert);
588          printf("-dj %f\t\t\t# direct jitter\n", dstrsrc);
589 +        printf("-dr %-9d\t\t\t# direct relays\n", directrelay);
590          printf("-av %f %f %f\t# ambient value\n", colval(ambval,RED),
591                          colval(ambval,GRN), colval(ambval, BLU));
592          printf("-ab %-9d\t\t\t# ambient bounces\n", ambounce);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)