John Kessenich | 6996841 | 2014-08-13 06:37:59 +0000 | [diff] [blame] | 1 | #version 450 core
|
| 2 |
|
| 3 | in gl_PerVertex {
|
| 4 | float gl_CullDistance[3];
|
| 5 | } gl_in[];
|
| 6 |
|
| 7 | out gl_PerVertex {
|
| 8 | float gl_CullDistance[3];
|
| 9 | };
|
| 10 |
|
John Kessenich | 2184c2f | 2017-04-03 14:29:20 -0600 | [diff] [blame] | 11 | layout(triangles) in;
|
| 12 |
|
John Kessenich | 6996841 | 2014-08-13 06:37:59 +0000 | [diff] [blame] | 13 | void main()
|
| 14 | {
|
John Kessenich | 2184c2f | 2017-04-03 14:29:20 -0600 | [diff] [blame] | 15 | gl_in[3].gl_Position; // ERROR, out of range
|
John Kessenich | 6996841 | 2014-08-13 06:37:59 +0000 | [diff] [blame] | 16 | gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
|
| 17 | }
|