Ray tracing reflection depth demo

Here’s a quick visual demo of the effect of reflection depth in ray tracing, using the incredible Tiny Raytracer by Gabriel Gambetta. I have hosted a modified version of Tiny Raytracer on codepen for experimentation.

Comparison:

Reflection depth: 0

Reflection depth: 1

Reflection depth: 2

Reflection depth: 3

Author: Michael Jasper

Michael is a Web Developer located in Northern Utah. When not programming, he enjoys spending time with his family, exploring the great-outdoors, and hit-and-miss cooking experiments.