summaryrefslogtreecommitdiff
path: root/src/modules/sparkler/particle.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-02-09 04:59:05 -0800
committerVito Caputo <vcaputo@gnugeneration.com>2017-02-09 04:59:05 -0800
commita4914d40fd9e25fa4c02af8d4c02d227064c1903 (patch)
treeeeee7fbc6f382e6ef8e51fbd8f8823bd5d326584 /src/modules/sparkler/particle.c
parent19dbf88c811c6f853566fda48ad100d1c29faf50 (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.c')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved