small changes

This commit is contained in:
Tim Anema 2014-09-30 21:42:10 -04:00
parent 8aacf0f69c
commit 654deb165c
3 changed files with 0 additions and 5 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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 = {}