fix(boxes): remove some test print.

This commit is contained in:
Kazhnuz 2019-07-06 18:02:53 +02:00
parent a3b0f47127
commit 0993f1e8bb

View file

@ -123,7 +123,6 @@ end
function Box3D:redrawShadowCanvas() function Box3D:redrawShadowCanvas()
if (self.needRedraw) then if (self.needRedraw) then
print("DEBUG: Generating " .. #self.shadowSources .. " shadows")
local canvas = love.graphics.newCanvas(self.w, self.h) local canvas = love.graphics.newCanvas(self.w, self.h)
love.graphics.setCanvas( canvas ) love.graphics.setCanvas( canvas )
for i,v in ipairs(self.shadowSources) do for i,v in ipairs(self.shadowSources) do
@ -150,7 +149,6 @@ function Box3D:draw(x, y, z)
love.graphics.draw(self.texture.top, x, (y-z) - (self.d)) love.graphics.draw(self.texture.top, x, (y-z) - (self.d))
love.graphics.draw(self.texture.bottom, x, (y-z) - (self.d) + (self.h)) love.graphics.draw(self.texture.bottom, x, (y-z) - (self.d) + (self.h))
if (self.texture.shadows ~= nil) and (#self.shadowSources > 0) then if (self.texture.shadows ~= nil) and (#self.shadowSources > 0) then
print("DEBUG: Drawing " .. #self.shadowSources .. " shadow textures")
love.graphics.draw(self.texture.shadows, x, (y-z) - (self.d)) love.graphics.draw(self.texture.shadows, x, (y-z) - (self.d))
end end
end end