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 2.38 by greg, Fri Dec 8 18:49:14 1995 UTC vs.
Revision 2.39 by greg, Wed Feb 14 15:18:14 1996 UTC

# Line 128 | Line 128 | extern int  maxdepth;                  /* maximum recursion depth */
128   extern double  minweight;               /* minimum ray weight */
129  
130   extern COLOR  ambval;                   /* ambient value */
131 + extern int  ambvwt;                     /* initial weight for ambient value */
132   extern double  ambacc;                  /* ambient accuracy */
133   extern int  ambres;                     /* ambient resolution */
134   extern int  ambdiv;                     /* ambient divisions */
# Line 389 | Line 390 | char  *argv[];
390                                                  atof(argv[i+3]));
391                                  i += 3;
392                                  break;
393 +                        case 'w':                               /* weight */
394 +                                check(3,"i");
395 +                                ambvwt = atoi(argv[++i]);
396 +                                break;
397                          case 'a':                               /* accuracy */
398                                  check(3,"f");
399                                  ambacc = atof(argv[++i]);
# Line 897 | Line 902 | printdefaults()                        /* print default values to stdout */
902          printf("-st %f\t\t\t# specular threshold\n", specthresh);
903          printf("-av %f %f %f\t# ambient value\n", colval(ambval,RED),
904                          colval(ambval,GRN), colval(ambval, BLU));
905 +        printf("-aw %-9d\t\t\t# ambient value weight\n", ambvwt);
906          printf("-ab %-9d\t\t\t# ambient bounces\n", ambounce);
907          printf("-aa %f\t\t\t# ambient accuracy\n", ambacc);
908          printf("-ar %-9d\t\t\t# ambient resolution\n", ambres);

Diff Legend

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