Ray Tracing From Scratch: BRDFs, Object Lights & Path Tracing

The current ray tracer does not support indirect lighting from non-emissive objects. In order to provide that, the method called path…