~npisanti/rl_tools

4abb671235d5a46f248130a42c0582d2639f262e — Nicola Pisanti 3 months ago f10aefe
shader saves to png
1 files changed, 5 insertions(+), 0 deletions(-)

M shader/main.lua
M shader/main.lua => shader/main.lua +5 -0
@@ 32,4 32,9 @@ function loop()
    layer.close() 

    frag.apply( "glsl" )

	if key.pressed( key.s ) then 
		window.save("output.png")
		print ( "saved to output.png" )
	end 
end