From 138292651516a68125357de17d483ec0f56dd24b Mon Sep 17 00:00:00 2001
From: Yoel <s73017@beuth-hochschule.de>
Date: Fri, 12 Feb 2021 15:17:00 +0100
Subject: [PATCH] Fixed some texel bug

---
 RayTracer/material/BackgroundMaterial.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/RayTracer/material/BackgroundMaterial.cpp b/RayTracer/material/BackgroundMaterial.cpp
index 22f7c2d..fa967d0 100644
--- a/RayTracer/material/BackgroundMaterial.cpp
+++ b/RayTracer/material/BackgroundMaterial.cpp
@@ -14,7 +14,7 @@ util::Vec3 BackgroundMaterial::albedo(float texel_x, float texel_y) const {
 	return util::Vec3(1, 1, 1);
 }
 util::Vec3 BackgroundMaterial::emission(float texel_x, float texel_y) const {
-	return texture->color(texel_x, -texel_y);
+	return texture->color(texel_x, texel_y);
 }
 util::Vec3 BackgroundMaterial::scattered_d(const util::Vec3& d,
                                            const util::Vec3& n) const {
-- 
GitLab