Thanks for the advise!
So digging into the code I found this bit in “rayrace.c” line 119:
if ((maxdepth <= 0) & (rc != **NULL** ))
I’m a bit confused as to the purpose of “maxdepth” variable. The comments say it limits the recursion depth, but it seems like it only limits the number of specular reflections, but the depth of the ray tree can be larger than “maxdepth”. Am I getting this right?
In any even I ended up simply modifying it to this:
if ((maxdepth < 0) & (rc != **NULL** ))
Which seems to work. I realise this will turn off reflections for all materials, which I’m fine with. I just wanted to make sure I’m not getting myself into any trouble by making this modification?