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