#version 150 compatibility out vec4 colors; void main() { // transform vertex to clip space gl_Position = gl_Vertex; colors = gl_Color; }