{{newinoldin|[[0.8.0]]|080|[[0.9.0]]|090|type=function|text=It has been renamed to [[Shader:send]]}}
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.

<source lang="glsl">
extern number time;
extern vec2 light_pos;
extern vec4 colors[4];
</source>

The corresponding send calls would be

<source lang="lua">
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})
</source>

== 関数 ==
=== 概要 ===
<source lang="lua">
PixelEffect:send( name, number, ... )
</source>
=== 引数 ===
{{param (日本語)|string|name|Name of the number to send to the pixel effect.}}
{{param (日本語)|number|number|Number to send to store in the extern.}}
{{param (日本語)|number|...|Additional numbers to send in case the extern is an array.}}
=== 返値 ===
ありません。

== 関数 ==
=== 概要 ===
<source lang="lua">
PixelEffect:send( name, vector, ... )
</source>
=== 引数 ===
{{param (日本語)|string|name|Name of the vector to send to the pixel effect.}}
{{param (日本語)|table|vector|Numbers to send to the extern as a vector. The number of elements in the table determines the type of the vector (e.g. two numbers -> vec2). At least two and at most four numbers can be used.}}
{{param (日本語)|table|...|Additional vectors to send in case the extern is an array. All vectors need to be of the same size (e.g. only vec3's)}}
=== 返値 ===
ありません。

== 関数 ==
=== 概要 ===
<source lang="lua">
PixelEffect:send( name, matrix, ... )
</source>
=== 引数 ===
{{param (日本語)|string|name|Name of the matrix to send to the pixel effect.}}
{{param (日本語)|table|matrix|2x2, 3x3, or 4x4 matrix to send to the extern. Using table form: <code><nowiki>{{a,b,c,d}, {e,f,g,h}, ... }</nowiki></code>}}
{{param (日本語)|table|...|Additional matrices of the same type as ''matrix'' to store in the extern array.}}
=== 返値 ===
ありません。

== 関数 ==
=== 概要 ===
<source lang="lua">
PixelEffect:send( name, image, ... )
</source>
=== 引数 ===
{{param (日本語)|string|name|Name of the Image to send to the pixel effect.}}
{{param (日本語)|Image|image|Image to send to the extern.}}
{{param (日本語)|Image|...|Additional images in case the extern is an array.}}
=== 返値 ===
ありません。

== 関数 ==
=== 概要 ===
<source lang="lua">
PixelEffect:send( name, canvas, ... )
</source>
=== 引数 ===
{{param (日本語)|string|name|Name of the Canvas to send to the pixel effect.}}
{{param (日本語)|Canvas|canvas|Canvas to send to the extern. The pixel effect type is ''Image''.}}
{{param (日本語)|Image|...|Additional canvases to send to the extern array.}}
=== 返値 ===
ありません。

== 関連 ==
* [[parent::PixelEffect (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Sends one or more values to the pixel effect.}}
== そのほかの言語 ==
{{i18n (日本語)|PixelEffect:send}}