layout (location = 0) in vec3 inPos; layout (location = 1) flat in int index; void main() { }