diff --git a/examples/short.lua b/examples/short.lua index 0246304..31f860b 100644 --- a/examples/short.lua +++ b/examples/short.lua @@ -73,7 +73,6 @@ function love.update(dt) end function love.draw() - --camera:setScale(scale) camera:draw(function(l,t,w,h) love.graphics.setColor(255, 255, 255) love.graphics.rectangle("fill", 0, 0, 2000, 2000) @@ -83,7 +82,6 @@ function love.draw() love.graphics.polygon("fill", rectangleTest:getPoints()) love.graphics.setColor(255, 255, 255) love.graphics.draw(image, 64 - image:getWidth() * 0.5, 64 - image:getHeight() * 0.5) - lightWorld:drawShine(l,t,w,h) lightWorld:drawPixelShadow(l,t,w,h) lightWorld:drawGlow(l,t,w,h) diff --git a/lib/body.lua b/lib/body.lua index 2cc1c0f..41e0d3d 100644 --- a/lib/body.lua +++ b/lib/body.lua @@ -590,7 +590,6 @@ function body:drawGlow(l,t,w,h) love.graphics.setColor(0, 0, 0) end - --glow has no translation compensation?! if self.type == "circle" then love.graphics.circle("fill", self.x, self.y, self.radius) elseif self.type == "rectangle" then @@ -626,7 +625,6 @@ function body:drawRefraction(l,t,w,h) love.graphics.setColor(0, 0, 0) - -- no translation compensation again? if not self.refractive then if self.type == "circle" then love.graphics.circle("fill", self.x, self.y, self.radius) diff --git a/lib/light_world.lua b/lib/light_world.lua index 3ffc202..8a4da31 100644 --- a/lib/light_world.lua +++ b/lib/light_world.lua @@ -40,7 +40,6 @@ light_world.refractionShader:send("screen", {love.window.getWidth(), love.window light_world.reflectionShader:send("screen", {love.window.getWidth(), love.window.getHeight()}) function light_world:init() - self.scale = 1 self.last_buffer = nil self.lights = {}