From 0f9e88ccf0510ab4d830529fa539ef6db715f988 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 16 Sep 2020 20:52:12 +0200 Subject: Added first draft of spectral lightning --- src/render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render.cpp') 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; -- cgit v1.2.3