delete unnecessary code

"else 0.0" is not used
This commit is contained in:
aoki1980taichi
2022-06-24 19:22:28 +09:00
committed by GitHub
parent d4d902b072
commit 4332f56056
-4
View File
@@ -243,8 +243,6 @@ class Scene
@plane.intersect(ray, occisect)
if occisect.hit
occlusion = occlusion + 1.0
else
0.0
end
end
end
@@ -288,8 +286,6 @@ class Scene
rad.x = rad.x + col.x
rad.y = rad.y + col.y
rad.z = rad.z + col.z
else
0.0
end
end
end