From bd5f3ef216fdf96fce356235ba981b28fa00ef29 Mon Sep 17 00:00:00 2001 From: Yoel <s73017@beuth-hochschule.de> Date: Sat, 17 Oct 2020 17:11:47 +0200 Subject: [PATCH] CirclePlane now has unique orientation --- RayTracer/shape/CirclePlane.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/RayTracer/shape/CirclePlane.cpp b/RayTracer/shape/CirclePlane.cpp index ee2af08..f2bacf2 100644 --- a/RayTracer/shape/CirclePlane.cpp +++ b/RayTracer/shape/CirclePlane.cpp @@ -15,9 +15,6 @@ std::optional<cam::Hit> CirclePlane::intersect(const cam::Ray& r) const { util::Vec3 x0 = r.x0; util::Vec3 d = r.d; - if (util::dot(d, n) > 0) { - n = n * -1; - } float a = util::dot(d, n); if (a == 0) { return std::nullopt; -- GitLab