20 lines
354 B
Plaintext
Raw Normal View History

2016-12-15 14:19:54 -08:00
#version 450 core
in gl_PerVertex {
float gl_CullDistance[3];
} gl_in[];
out gl_PerVertex {
float gl_CullDistance[3];
};
2017-04-07 20:11:36 -07:00
layout(triangles) in;
2016-12-15 14:19:54 -08:00
void main()
{
2017-04-07 20:11:36 -07:00
gl_in[3].gl_Position; // ERROR, out of range
2016-12-15 14:19:54 -08:00
gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
}
2017-06-30 19:37:56 -07:00
layout(points) in float f[3]; // ERROR, must be standalone