# | Line 28 | Line 28 | inithemi( /* initialize sampling hemisphere */ | |
---|---|---|
28 | register int i; | |
29 | /* set number of divisions */ | |
30 | if (ambacc <= FTINY && | |
31 | < | wt > (d = 0.8*bright(ac)*r->rweight/(ambdiv*minweight))) |
31 | > | wt > (d = 0.8*intens(ac)*r->rweight/(ambdiv*minweight))) |
32 | wt = d; /* avoid ray termination */ | |
33 | hp->nt = sqrt(ambdiv * wt / PI) + 0.5; | |
34 | i = ambacc > FTINY ? 3 : 1; /* minimum number of samples */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |