Skip to content
Snippets Groups Projects
Commit bd5f3ef2 authored by Yoel's avatar Yoel
Browse files

CirclePlane now has unique orientation

parent 41a30a3b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment