mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
fixed the additive layer on the pixel shadow for translations
This commit is contained in:
parent
820033810b
commit
1c5eb2c804
@ -188,7 +188,7 @@ function light_world:drawPixelShadow(l,t,w,h,s)
|
|||||||
util.drawto(self.pixelShadow, l, t, s, function()
|
util.drawto(self.pixelShadow, l, t, s, function()
|
||||||
love.graphics.setBlendMode("additive")
|
love.graphics.setBlendMode("additive")
|
||||||
love.graphics.setColor({self.ambient[1], self.ambient[2], self.ambient[3]})
|
love.graphics.setColor({self.ambient[1], self.ambient[2], self.ambient[3]})
|
||||||
love.graphics.rectangle("fill", l/s,t/s,w/s,h/s)
|
love.graphics.rectangle("fill", -l/s, -t/s, w/s,h/s)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
util.drawCanvasToCanvas(self.pixelShadow, self.render_buffer, {blendmode = "multiplicative"})
|
util.drawCanvasToCanvas(self.pixelShadow, self.render_buffer, {blendmode = "multiplicative"})
|
||||||
|
Loading…
Reference in New Issue
Block a user