2018-02-05 08:34:54 +00:00
|
|
|
#version 310 es
|
|
|
|
|
2018-02-05 11:37:41 +00:00
|
|
|
layout(location = 0) in vec4 vInput0;
|
|
|
|
layout(location = 1) in vec4 vInput1;
|
|
|
|
|
2018-02-05 08:34:54 +00:00
|
|
|
vec4[2] test()
|
|
|
|
{
|
|
|
|
return vec4[](vec4(10.0), vec4(20.0));
|
|
|
|
}
|
|
|
|
|
2018-02-05 11:37:41 +00:00
|
|
|
vec4[2] test2()
|
|
|
|
{
|
|
|
|
vec4 foobar[2];
|
|
|
|
foobar[0] = vInput0;
|
|
|
|
foobar[1] = vInput1;
|
|
|
|
return foobar;
|
|
|
|
}
|
|
|
|
|
2018-02-05 08:34:54 +00:00
|
|
|
void main()
|
|
|
|
{
|
2018-02-05 11:37:41 +00:00
|
|
|
gl_Position = test()[0] + test2()[1];
|
2018-02-05 08:34:54 +00:00
|
|
|
}
|