--- ray/src/rt/rtrace.c 2006/02/22 17:05:36 2.52 +++ ray/src/rt/rtrace.c 2006/04/05 14:30:38 2.54 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rtrace.c,v 2.52 2006/02/22 17:05:36 greg Exp $"; +static const char RCSid[] = "$Id: rtrace.c,v 2.54 2006/04/05 14:30:38 greg Exp $"; #endif /* * rtrace.c - program and variables for individual ray tracing. @@ -47,7 +47,7 @@ char *outvals = "v"; /* output specification */ int do_irrad = 0; /* compute irradiance? */ -int rand_samp = 0; /* pure Monte Carlo sampling? */ +int rand_samp = 1; /* pure Monte Carlo sampling? */ void (*trace)() = NULL; /* trace call */ @@ -198,7 +198,7 @@ rtrace( /* trace rays from file */ nextflush = hresolu; } } else { - samplendx = rand_samp ? random() : samplendx+1; + samplendx++; /* compute and print */ if (imm_irrad) irrad(orig, direc);