| # | Line 209 | Line 209 | register RAY *r; | |
|---|---|---|
| 209 | /* check threshold */ | |
| 210 | if (specthresh > FTINY && | |
| 211 | ((specthresh >= 1.-FTINY || | |
| 212 | < | specthresh + (.1 - .2*urand(8199+samplendx)) |
| 212 | > | specthresh + (.05 - .1*urand(8199+samplendx)) |
| 213 | > nd.rspec))) | |
| 214 | nd.specfl |= SP_RBLT; | |
| 215 | /* compute refl. direction */ | |
| # | Line 240 | Line 240 | register RAY *r; | |
| 240 | if (specthresh > FTINY && | |
| 241 | ((specthresh >= 1.-FTINY || | |
| 242 | specthresh + | |
| 243 | < | (.1 - .2*urand(7241+samplendx)) |
| 243 | > | (.05 - .1*urand(7241+samplendx)) |
| 244 | > nd.tspec))) | |
| 245 | nd.specfl |= SP_TBLT; | |
| 246 | if (r->crtype & SHADOW || | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |