From 57c2f9241543a7d18eab98077530730d49ee10c2 Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 14 Jan 2021 00:56:57 +0100 Subject: Replace color with pbr-book inspired Spectrum class --- src/render.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render.hpp') diff --git a/src/render.hpp b/src/render.hpp index 8102686..f8da98a 100644 --- a/src/render.hpp +++ b/src/render.hpp @@ -30,7 +30,7 @@ class Renderer { public: Renderer(const Scene &scn, Vec3d eye, Vec3d target, unsigned width, unsigned height, unsigned maxhops); - Color render(unsigned x, unsigned y, unsigned samples); + Spectrum render(unsigned x, unsigned y, unsigned samples); unsigned m_width, m_height; Sampler m_sampler; @@ -39,7 +39,7 @@ class Renderer { void recalculate(); Ray findray(double x, double y) const ; - Color pathtrace_sample(const Ray &r, unsigned hop); + Spectrum pathtrace_sample(const Ray &r, unsigned hop); // Will return first result less than chk_dist. // This is ignored if chk_dist is 0. // If dist is non-null the resulting distance is written here. -- cgit v1.2.3