From 9a033d169369b5cff14c3b03185fcf8ade16f4f5 Mon Sep 17 00:00:00 2001 From: Hesper Yin Date: Wed, 4 Nov 2020 18:42:12 -0500 Subject: [PATCH] Update shadow_rays.md --- docs/pathtracer/shadow_rays.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/docs/pathtracer/shadow_rays.md b/docs/pathtracer/shadow_rays.md index d27d9f8..db20311 100644 --- a/docs/pathtracer/shadow_rays.md +++ b/docs/pathtracer/shadow_rays.md @@ -26,6 +26,33 @@ Your job is to implement the logic needed to compute whether hit point is in sha * You will find it useful to debug your shadow code using the `DirectionalLight` since it produces hard shadows that are easy to reason about. * You would want to comment out the line `Spectrum radiance_out = Spectrum(0.5f);` and initialize the `radiance_out` to a more reasonable value. Hint: is there supposed to have any amount of light before we even start considering each light sample? -At this point you should be able to render very striking images. For example, here is the head of Peter Schröder rendered with an area light from above. +At this point you should be able to render very striking images. + +## Sample results: + +The head of Peter Schröder rendered with an area light from above. + +![shadow_area](new_results/shadow_peter.png) + +A sphere and a cube with hemishphere lighting + +![shadow_hemisphere](new_results/cube_sphere_hemisphere.png) + +Hex and cube under diretional lighting + +![ref1](new_results/ref1.png) + +Bunny on a plane under point light + +![ref1](new_results/ref2.png) + +Spot on a sphere under diretional lighting + +![ref1](new_results/ref3.png) + + +Spot on a sphere under hemisphere lighting + +![ref1](new_results/ref4.png) + -![shadow_directional](new_results/shadow_peter.png) -- GitLab