| 518 |
|
.BI -lr \ N |
| 519 |
|
Limit reflections to a maximum of |
| 520 |
|
.I N. |
| 521 |
+ |
If |
| 522 |
+ |
.I N |
| 523 |
+ |
is zero or negative, then Russian roulette is used for ray |
| 524 |
+ |
termination, and the |
| 525 |
+ |
.I -lw |
| 526 |
+ |
setting (below) must be positive. |
| 527 |
+ |
If N is a negative integer, then this sets the upper limit |
| 528 |
+ |
of reflections past which Russian roulette will not be used. |
| 529 |
+ |
In scenes with dielectrics and total internal reflection, |
| 530 |
+ |
a setting of 0 (no limit) may cause a stack overflow. |
| 531 |
|
.TP |
| 532 |
|
.BI -lw \ frac |
| 533 |
|
Limit the weight of each ray to a minimum of |
| 534 |
|
.I frac. |
| 535 |
< |
During ray-tracing, a record is kept of the final contribution |
| 536 |
< |
a ray would have to the image. |
| 537 |
< |
If it is less then the specified minimum, the ray is not traced. |
| 535 |
> |
During ray-tracing, a record is kept of the estimated contribution |
| 536 |
> |
(weight) a ray would have in the image. |
| 537 |
> |
If this weight is less than the specified minimum and the |
| 538 |
> |
.I -lr |
| 539 |
> |
setting (above) is positive, the ray is not traced. |
| 540 |
> |
Otherwise, Russian roulette is used to |
| 541 |
> |
continue rays with a probability equal to the ray weight |
| 542 |
> |
divided by the given |
| 543 |
> |
.I frac. |
| 544 |
|
.TP |
| 545 |
|
.BR -ld |
| 546 |
|
Boolean switch to limit ray distance. |