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.setColor(unpack(o.ambient))
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.setBlendMode("additive")
for i = 1, #o.lights do
@ -1642,4 +1642,4 @@ function HeightMapToNormalMap(heightMap, strength)
end
return love.graphics.newImage(imgData2)
end
end