fixed updating of shine drawing for translated co-ordiantes

This commit is contained in:
Tim Anema 2014-06-02 19:35:50 -04:00
parent 88b5014326
commit b353eff979

View File

@ -224,7 +224,7 @@ function love.light.newWorld()
love.graphics.setCanvas(o.shine) love.graphics.setCanvas(o.shine)
love.graphics.setColor(unpack(o.ambient)) love.graphics.setColor(unpack(o.ambient))
love.graphics.setBlendMode("alpha") love.graphics.setBlendMode("alpha")
love.graphics.rectangle("fill", 0, 0, love.graphics.getWidth(), love.graphics.getHeight()) love.graphics.rectangle("fill", LOVE_LIGHT_TRANSLATE_X, LOVE_LIGHT_TRANSLATE_Y, love.graphics.getWidth(), love.graphics.getHeight())
love.graphics.setColor(255, 255, 255) love.graphics.setColor(255, 255, 255)
love.graphics.setBlendMode("additive") love.graphics.setBlendMode("additive")
for i = 1, #o.lights do for i = 1, #o.lights do