CHAPTER NINE: Shaders and Rendering Algorithms 269
To prevent the renderer from endlessly looping, the number of raytracing
steps is strictly limited. Because it can have such a huge impact on your
rendering time, many programs limit the number of refl ections twice. First,
it is limited globally in your rendering settings, where you set a maximum
number of refl ections and total raytracing steps. Second, it is also limited
per shader, where a refl ective shader will have a refl ection limit (also called a
recursion depth or trace depth) set as a raytracing option.
If you don’t need refl ections of refl ections, setting the number of refl ec-
tions to 1 either globally or in the shader will speed up your rendering
time. If you need to see light interrefl ...