Just to be sure.

This commit is contained in:
Godzil
2020-02-20 17:47:26 +00:00
parent cf5597ad6d
commit de315d06f9

View File

@@ -127,7 +127,7 @@ bool World::isShadowed(Tuple point)
Ray r = Ray(point, direction); Ray r = Ray(point, direction);
Intersection h = this->intersect(r).hit(); Intersection h = this->intersect(r).hit();
if (!h.nothing() && h.t < distance) if (!h.nothing() && (h.t < distance))
{ {
return true; return true;
} }