|
![](/i/fill.gif) |
clipka wrote:
> I'll take the freedom to try and attach that radiosity "bounce level" to the ray
> object, and strongly advise doing the same for the classic "trace level".
You really don't want to fill a lightweight class like ray with data like
that. The recursion level is a property of the algorithm, not a ray. As
such, moving recursion counting into the ray violates separation of data and
algorithm, which in the long term practically always turns out to bit you
somewhere else later when you do not expect it.
Thorsten
Post a reply to this message
|
![](/i/fill.gif) |