diff --git a/RayTracer/shape/CirclePlane.cpp b/RayTracer/shape/CirclePlane.cpp index ee2af080c63e200a35fd3124bc8c1b6f04555e7f..f2bacf233dbaca8566cdd0d44162b67fa5317914 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;