2019-03-21 10:25:41 +00:00
|
|
|
#version 450
|
|
|
|
layout(triangles) in;
|
|
|
|
layout(max_vertices = 3, triangle_strip) out;
|
|
|
|
|
|
|
|
struct SceneOut
|
|
|
|
{
|
|
|
|
vec4 pos;
|
|
|
|
};
|
|
|
|
|
|
|
|
void _main(vec4 positions[3], SceneOut OUT)
|
|
|
|
{
|
2019-06-06 09:10:39 +00:00
|
|
|
SceneOut o;
|
2019-03-21 10:25:41 +00:00
|
|
|
for (int i = 0; i < 3; i++)
|
|
|
|
{
|
|
|
|
o.pos = positions[i];
|
|
|
|
gl_Position = o.pos;
|
|
|
|
EmitVertex();
|
|
|
|
}
|
|
|
|
EndPrimitive();
|
|
|
|
}
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
vec4 _35_unrolled[3];
|
|
|
|
for (int i = 0; i < int(3); i++)
|
|
|
|
{
|
|
|
|
_35_unrolled[i] = gl_in[i].gl_Position;
|
|
|
|
}
|
|
|
|
vec4 positions[3] = _35_unrolled;
|
|
|
|
vec4 param[3] = positions;
|
|
|
|
SceneOut param_1;
|
|
|
|
_main(param, param_1);
|
|
|
|
SceneOut OUT = param_1;
|
|
|
|
}
|
|
|
|
|