Skip to content

Visualization of normals

Joy Alice Gu edited this page Jun 24, 2020 · 1 revision

For debugging purposes:

You can replace the L_out = Spectrum(5.f ...) in pathtracer.cpp that the starter code gives you with:

  (isect.n).normalize();
  return Spectrum(isect.n.x/2.0 + 0.5, isect.n.y/2.0 + 0.5, isect.n.z/2.0 + 0.5);

Reference results for CBspheres, bunny, dragon, and wall-e:

Clone this wiki locally