aboutsummaryrefslogtreecommitdiff
path: root/src/illuminate/illuminate.cpp
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-12-13 02:49:03 -0500
committersotech117 <michael_foiani@brown.edu>2023-12-13 02:49:03 -0500
commit256a50ddd591223cb2cab00cc4c2be62993077da (patch)
treeb1f0bebbdecb0c72d21eeb96876337235a5df135 /src/illuminate/illuminate.cpp
parent87e614254bc0b1ad0f2ac28a5092c97caab09d7a (diff)
experiment with scene files
Diffstat (limited to 'src/illuminate/illuminate.cpp')
-rw-r--r--src/illuminate/illuminate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/illuminate/illuminate.cpp b/src/illuminate/illuminate.cpp
index 641f06d..a651924 100644
--- a/src/illuminate/illuminate.cpp
+++ b/src/illuminate/illuminate.cpp
@@ -87,10 +87,10 @@ glm::vec4 RayTracer::illuminatePixel(
}
}
- // auto incidentDir = -directionToCamera;
+ auto incidentDir = -directionToCamera;
// recursive raytracing for the reflection and refraction (see reflect.cpp)
- // illumination += refract(intersectionWorld, normalWorld, incidentDir, shape, scene, depth + 1);
- // illumination += reflect(intersectionWorld, normalWorld, incidentDir, shape, scene, depth + 1);
+ illumination += refract(intersectionWorld, normalWorld, incidentDir, shape, scene, depth + 1);
+ illumination += reflect(intersectionWorld, normalWorld, incidentDir, shape, scene, depth + 1);
return illumination;
} \ No newline at end of file