Source

gltut (python/pygame/pyOpenGL) / 03_OpenGLs_moving_triangle / data / positionOffset.vert

Full commit
#version 330

layout(location = 0) in vec4 position;
uniform vec2 offset;

void main()
{
	vec4 total_offset = vec4(offset.x, offset.y, 0.0, 0.0);
	gl_Position = position + total_offset;
}