Implements basic pathtracing with a Lambert brdf.