diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2017-02-09 04:59:05 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2017-02-09 04:59:05 -0800 |
commit | a4914d40fd9e25fa4c02af8d4c02d227064c1903 (patch) | |
tree | eeee7fbc6f382e6ef8e51fbd8f8823bd5d326584 /src/modules/sparkler/particle.h | |
parent | 19dbf88c811c6f853566fda48ad100d1c29faf50 (diff) |
ray: remove redundant recursion depth increment
trace_ray() bumps the depth, the reflection ray trace_ray() call just needs to
propagate the depth variable not advance it as well. This was probably
vestigial from early development and never got taken out.
This does mean more reflections now, and correspondingly slower rendering, but
it at least makes MAX_RECURSION_DEPTH accurate. The define can be changed if
the performance is too bad.
Diffstat (limited to 'src/modules/sparkler/particle.h')
0 files changed, 0 insertions, 0 deletions