Available since LÖVE 0.10.0
This function is not supported in earlier versions.
Sends one or more colors to a special (extern / uniform) vec3 or vec4 variable inside the shader. The color components must be in the range of [0, 255], unlike Shader:send. The colors are gamma-corrected if global gamma-correction is enabled.
Extern variables must be marked using the extern keyword, e.g.
extern vec4 Color;
The corresponding sendColor call would be
shader:sendColor("Color", {r, g, b, a})
Extern variables can be accessed in both the Vertex and Pixel stages of a shader, as long as the variable is declared in each.
Shader:sendColor( name, color, ... )
string name
table color
table ...
Nothing.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Shader:sendColor