--- ray/src/rt/renderopts.c 2005/05/31 18:01:09 2.8 +++ ray/src/rt/renderopts.c 2005/06/13 20:07:56 2.9 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: renderopts.c,v 2.8 2005/05/31 18:01:09 greg Exp $"; +static const char RCSid[] = "$Id: renderopts.c,v 2.9 2005/06/13 20:07:56 greg Exp $"; #endif /* * renderopts.c - process common rendering options @@ -36,6 +36,9 @@ getrenderopt( /* get next render option */ return(-1); /* check if it's one we know */ switch (av[0][1]) { + case 'R': /* random sampling */ + bool(2,rand_samp); + return(0); case 'b': /* back face vis. */ if (av[0][2] == 'v') { bool(3,backvis); @@ -217,6 +220,8 @@ print_rdefaults(void) /* print default render values { printf(do_irrad ? "-i+\t\t\t\t# irradiance calculation on\n" : "-i-\t\t\t\t# irradiance calculation off\n"); + printf(rand_samp ? "-R+\t\t\t\t# random sampling on\n" : + "-R-\t\t\t\t# random sampling off\n"); printf(backvis ? "-bv+\t\t\t\t# back face visibility on\n" : "-bv-\t\t\t\t# back face visibility off\n"); printf("-dt %f\t\t\t# direct threshold\n", shadthresh);