diff --git a/RayTracer/sampling/Image.cpp b/RayTracer/sampling/Image.cpp index 24927a2260c09883a923d6eec9cb302b9c671e16..8b673b4087df4d03d5e4510abd222f1d258d7dcc 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