~npisanti/rsk_tools

27cef66988828f7eca5ea0531f8dd7f85bab8129 — Nicola Pisanti 3 months ago e1a2def
glsl with mult option
1 files changed, 8 insertions(+), 4 deletions(-)

M shader/main.lua
M shader/main.lua => shader/main.lua +8 -4
@@ 2,7 2,6 @@
require "strict"

----------------------------------------------------

window.title( " " )

if args.count() > 0 then 


@@ 17,9 16,14 @@ if args.count() > 2 then
	h = tonumber( args.get(2) )
end

window.size( w, h )
layer.create( "def" )

if args.count() > 3 then
	local m = tonumber( args.get(3) )
	window.size( w*m, h*m )
	layer.create( "def", w, h, m )
else
	window.size( w, h )
	layer.create( "def" )
end

----------------------------------------------------
function loop()