Chunky would rely Ray.set(Ray) to increase the depth, however different routines calls this a different amount of times leading to different ray depths in a scene. Here I have removed that change and made ray depth increase explicitly to successive frames in PathTracer.pathTrace. Currently this does not explicitly change the output, but it could be a easy mistake in the future or if the ray depth is needed in other parts of the code.
Chunky would rely
Ray.set(Ray)
to increase the depth, however different routines calls this a different amount of times leading to different ray depths in a scene. Here I have removed that change and made ray depth increase explicitly to successive frames inPathTracer.pathTrace
. Currently this does not explicitly change the output, but it could be a easy mistake in the future or if the ray depth is needed in other parts of the code.