From 9e1c1752c86b509b8173036c02a5b2682ce5a0e6 Mon Sep 17 00:00:00 2001 From: Yoel <s73017@beuth-hochschule.de> Date: Sun, 14 Feb 2021 22:16:38 +0100 Subject: [PATCH] Revert gamma correction in read images --- RayTracer/sampling/Image.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RayTracer/sampling/Image.cpp b/RayTracer/sampling/Image.cpp index 24927a2..8b673b4 100644 --- a/RayTracer/sampling/Image.cpp +++ b/RayTracer/sampling/Image.cpp @@ -176,6 +176,8 @@ Image readImage(const char* filename) { result[{i, 0}] = Vec3(x, y, z); i++; } + // Reverse the gamma correction on loaded images + result.gammaCorrect(0.454545); return result; } } // namespace util \ No newline at end of file -- GitLab