~npisanti/scriptools

ref: e1a2defea6bea4baaac728acf62a44dbb967ba57 scriptools/shader/main.lua -rw-r--r-- 490 bytes
e1a2defeNicola Pisanti updates for API changes 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require "strict"

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

window.title( " " )

if args.count() > 0 then 
    frag.load( args.get(0), "glsl" ) 
end    

local w = 480 
local h = 480

if args.count() > 2 then
	w = tonumber( args.get(1) )
	h = tonumber( args.get(2) )
end

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


----------------------------------------------------
function loop()
    layer.open()
        rl.clear(0,0,0,0)
    layer.close() 

    frag.apply( "glsl" )
end