diff --git a/RayTracer/material/BackgroundMaterial.cpp b/RayTracer/material/BackgroundMaterial.cpp index 22f7c2dd9e7509864b31047adc9a698f4491a866..fa967d03a476559d7b53ec417d50193f6c9922fc 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 {