# | Line 47 | Line 47 | char *outvals = "v"; /* output specification */ | |
---|---|---|
47 | ||
48 | int do_irrad = 0; /* compute irradiance? */ | |
49 | ||
50 | < | int rand_samp = 0; /* pure Monte Carlo sampling? */ |
50 | > | int rand_samp = 1; /* pure Monte Carlo sampling? */ |
51 | ||
52 | void (*trace)() = NULL; /* trace call */ | |
53 | ||
# | Line 198 | Line 198 | rtrace( /* trace rays from file */ | |
198 | nextflush = hresolu; | |
199 | } | |
200 | } else { | |
201 | < | samplendx = rand_samp ? random() : samplendx+1; |
201 | > | samplendx++; |
202 | /* compute and print */ | |
203 | if (imm_irrad) | |
204 | irrad(orig, direc); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |