aboutsummaryrefslogtreecommitdiff
path: root/src/render.cpp
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-09-16 20:52:12 +0200
committerJulian T <julian@jtle.dk>2020-12-06 22:44:10 +0100
commit0f9e88ccf0510ab4d830529fa539ef6db715f988 (patch)
tree863b5f466d3e81e16e04aad56ef7a0d860a143f9 /src/render.cpp
parenta38e6014ea5441e9d29fcb3b5607cd94e4061cff (diff)
Added first draft of spectral lightningold_spectral
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;