Available since LÖVE 0.8.0
This function is not supported in earlier versions.
Sends one or more values to a special (extern) variable inside the pixel effect. Extern variables have to be marked using the extern keyword, e.g.
extern number time; extern vec2 light_pos; extern vec4 colors[4];
The corresponding send calls would be
effect:send("time", t) effect:send("light_pos", {light_x, light_y}) effect:send("colors", {r1, g1, b1, a1}, {r2, g2, b2, a2}, {r3, g3, b3, a3}, {r4, g4, b4, a4})
PixelEffect:send( name, number, ... )
string name
number number
number ...
Nothing.
PixelEffect:send( name, vector, ... )
string name
table vector
table ...
Nothing.
PixelEffect:send( name, matrix, ... )
string name
table matrix
{{a,b,c,d}, {e,f,g,h}, ... }
table ...
Nothing.
PixelEffect:send( name, image, ... )
string name
Image image
Image ...
Nothing.
PixelEffect:send( name, canvas, ... )
string name
Canvas canvas
Image ...
Nothing.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/PixelEffect:send