shaderActivateLighting(3) -- enable 3 light sources (light index starts at 0)
-- light source 1
shaderLamp(0, 0,{500,500,1}, {900,0,0}, {0.001,0.000001,0},{0.0003,0,0.001},{1,1,1},0.5,30, 0)
bind("light1", "lights[0].targetpos", point(inverty(scrollfix(field("{x=500,y=500}"))), 0))
-- light source 2
shaderLamp(1, 0,{1000,900,1}, {900,0,0}, {0.001,0.000001,0},{0.0003,0,0.001},{1,1,1},0.5,30, 0)
bind("light2", "lights[1].targetpos", point(inverty(scrollfix(field("{x=1000,y=900}"))), 0))
-- light source 3
shaderLamp(2, 0,{100,700,1}, {900,0,0}, {0.001,0.000001,0},{0.0003,0,0.001},{1,1,1},0.5,30, 0)
bind("light3", "lights[2].targetpos", point(inverty(scrollfix(field("{x=100,y=700}"))), 0))