--- ray/src/rt/rv2.c 1991/10/10 12:08:58 1.28 +++ ray/src/rt/rv2.c 1991/10/21 13:30:43 1.30 @@ -22,7 +22,9 @@ static char SCCSid[] = "$SunId$ LBL"; #define CTRL(c) ('c'-'@') +extern char VersionID[]; extern char *progname; +extern char *octname; getframe(s) /* get a new frame */ @@ -382,6 +384,7 @@ register char *s; extern int ambssamp; extern int ambounce; extern int directinvis; + extern double srcsizerat; extern int do_irrad; char buf[128]; @@ -419,6 +422,9 @@ register char *s; getparam(s+2, "direct invisibility", 'b', &directinvis); break; + case 's': /* sampling */ + getparam(s+2, "direct sampling", 'r', &srcsizerat); + break; default: goto badparam; } @@ -542,7 +548,6 @@ char *s; writepict(s) /* write the picture to a file */ char *s; { - extern char VersionID[]; static char buf[128]; char *fname; FILE *fp; @@ -565,7 +570,10 @@ char *s; /* write header */ fputs(progname, fp); fprintview(&ourview, fp); - putc('\n', fp); + if (octname != NULL) + fprintf(fp, " %s\n", octname); + else + putc('\n', fp); fprintf(fp, "SOFTWARE= %s\n", VersionID); if (exposure != 1.0) fputexpos(exposure, fp);