mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
delete unnecessary code
"else 0.0" is not used
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user