#version 120 varying vec2 texcoord; void main() { gl_Position = gl_Vertex; texcoord = (gl_Vertex.xy + vec2(1, 1)) / 2.0; }