浏览代码

Just to be sure.

Godzil 4 年之前
父节点
当前提交
de315d06f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/world.cpp

+ 1 - 1
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;
     }