#version 150 in vec3 position; in uint index; uniform mat4 projectionTransform; uniform mat4 viewTransform; uniform mat4 modelTransform; flat out uint vertIndex; void main() { vertIndex = index; gl_Position = projectionTransform * viewTransform * modelTransform * vec4(position, 1.0); }