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.34 by greg, Tue Dec 20 20:18:25 1994 UTC vs.
Revision 2.35 by greg, Wed Dec 21 09:51:52 1994 UTC

# Line 115 | Line 115 | extern double  srcsizerat;             /* maximum source size/dis
115   extern double  specthresh;              /* specular sampling threshold */
116   extern double  specjitter;              /* specular sampling jitter */
117  
118 + extern int  backvis;                    /* back face visibility */
119 +
120   extern int  maxdepth;                   /* maximum recursion depth */
121   extern double  minweight;               /* minimum ray weight */
122  
# Line 216 | Line 218 | char  *argv[];
218                          }
219                          break;
220   #endif
221 +                case 'b':                               /* back face vis. */
222 +                        if (argv[i][2] == 'v') {
223 +                                bool(3,backvis);
224 +                                break;
225 +                        }
226 + #if  RVIEW
227 +                        bool(2,greyscale);
228 +                        break;
229 + #else
230 +                        goto badopt;
231 + #endif
232                  case 'd':                               /* direct */
233                          switch (argv[i][2]) {
234                          case 't':                               /* threshold */
# Line 531 | Line 544 | char  *argv[];
544                          break;
545   #endif
546   #if  RVIEW
534                case 'b':                               /* black and white */
535                        bool(2,greyscale);
536                        break;
547                  case 'o':                               /* output device */
548                          check(2,"s");
549                          devname = argv[++i];
# Line 839 | Line 849 | printdefaults()                        /* print default values to stdout */
849          printf("-ps %-9d\t\t\t# pixel sample\n", psample);
850          printf("-pt %f\t\t\t# pixel threshold\n", maxdiff);
851   #endif
852 +        printf(backvis ? "-bv+\t\t\t\t# back face visibility on\n" :
853 +                        "-bv-\t\t\t\t# back face visibility off\n");
854          printf("-dt %f\t\t\t# direct threshold\n", shadthresh);
855          printf("-dc %f\t\t\t# direct certainty\n", shadcert);
856          printf("-dj %f\t\t\t# direct jitter\n", dstrsrc);

Diff Legend

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