aboutsummaryrefslogtreecommitdiff
path: root/src/render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.cpp b/src/render.cpp
index c278797..3f2280d 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -124,7 +124,7 @@ Color Renderer::pathtrace_sample(const Ray &r, unsigned hop) {
auto newray = Ray(end, randdir, true);
auto incol = pathtrace_sample(newray, hop+1);
- col += res->m_mat.reflect(norm, r.m_direction, newray.m_direction, incol);
+ col += res->m_mat.reflect(norm, newray.m_direction, r.m_direction, incol);
}
return col;