From 8dd2426623501a962a924af39e8dbc91b625947a Mon Sep 17 00:00:00 2001 From: Ruairi Dorrity Date: Mon, 11 Feb 2019 11:56:32 -0800 Subject: [PATCH] Added stencil=true to setCanvas call to allow stencils to be used within effects. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 431c6c0..cb58a12 100644 --- a/init.lua +++ b/init.lua @@ -63,7 +63,7 @@ moonshine.chain = function(w,h,effect) local fg_r, fg_g, fg_b, fg_a = love.graphics.getColor() -- draw scene to front buffer - love.graphics.setCanvas((buffer())) -- parens are needed: take only front buffer + love.graphics.setCanvas{(buffer()), stencil=true} -- parens are needed: take only front buffer love.graphics.clear(love.graphics.getBackgroundColor()) func(...)