screenquad.glsl 148 Bytes
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1 2 3 4 5 6 7 8 9 10
#version 150

in vec4 inPosition;
out vec2 vTexCoord;

void main()
{
	gl_Position = inPosition;
	vTexCoord = inPosition.xy * 0.5 + vec2(0.5, 0.5);
}