diff --git a/source/world.cpp b/source/world.cpp index 2f57e72..1198484 100644 --- a/source/world.cpp +++ b/source/world.cpp @@ -127,7 +127,7 @@ bool World::isShadowed(Tuple point) Ray r = Ray(point, direction); Intersection h = this->intersect(r).hit(); - if (!h.nothing() && h.t < distance) + if (!h.nothing() && (h.t < distance)) { return true; }