1. Jason McKesson
  2. gltut

Source

gltut / Tut 02 Playing with Colors / data / VertexColors.vert

Jason McKesson c689e4d 
Jason McKesson b25a495 
Jason McKesson c689e4d 

Jason McKesson b25a495 






#version 330

layout (location = 0) in vec4 position;
layout (location = 1) in vec4 color;

smooth out vec4 theColor;

void main()
{
	gl_Position = position;
	theColor = color;
}