mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
fixed updating of shine drawing for translated co-ordiantes
This commit is contained in:
parent
88b5014326
commit
b353eff979
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user