mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
just some util changes
This commit is contained in:
parent
297952673b
commit
80a2d2e389
12
lib/util.lua
12
lib/util.lua
@ -10,6 +10,12 @@ function util.drawCanvasToCanvas(canvas, other_canvas, options)
|
||||
if options["shader"] then
|
||||
love.graphics.setShader(options["shader"])
|
||||
end
|
||||
if options["stencil"] then
|
||||
love.graphics.setInvertedStencil(options["stencil"])
|
||||
end
|
||||
if options["istencil"] then
|
||||
love.graphics.setInvertedStencil(options["stencil"])
|
||||
end
|
||||
if options["color"] then
|
||||
love.graphics.setColor(unpack(options["color"]))
|
||||
else
|
||||
@ -22,6 +28,12 @@ function util.drawCanvasToCanvas(canvas, other_canvas, options)
|
||||
if options["shader"] then
|
||||
love.graphics.setShader()
|
||||
end
|
||||
if options["stencil"] then
|
||||
love.graphics.setInvertedStencil()
|
||||
end
|
||||
if options["istencil"] then
|
||||
love.graphics.setInvertedStencil()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user