diff --git a/lib/light_world.lua b/lib/light_world.lua index 9e1ba40..aad5031 100644 --- a/lib/light_world.lua +++ b/lib/light_world.lua @@ -238,14 +238,18 @@ function light_world:draw(l,t,w,h,s) local last_buffer = love.graphics.getCanvas() love.graphics.setCanvas(self.render_buffer) - self.drawBackground(l,t,w,h,s) - self:drawShadow(l,t,w,h,scale) - self.drawForground(l,t,w,h,s) - self:drawShine(l,t,w,h,scale) - self:drawPixelShadow(l,t,w,h,scale) - self:drawGlow(l,t,w,h,scale) - self:drawRefraction(l,t,w,h,scale) - self:drawReflection(l,t,w,h,scale) + love.graphics.push() + love.graphics.scale(1/s) + l, t, w, h = (l*s), (t*s), (w*s), (h*s) + self.drawBackground( l,t,w,h,s) + self:drawShadow( l,t,w,h,s) + self.drawForground( l,t,w,h,s) + self:drawShine( l,t,w,h,s) + self:drawPixelShadow( l,t,w,h,s) + self:drawGlow( l,t,w,h,s) + self:drawRefraction( l,t,w,h,s) + self:drawReflection( l,t,w,h,s) + love.graphics.pop() love.graphics.setBackgroundColor(0, 0, 0) love.graphics.setBlendMode("alpha")