summaryrefslogtreecommitdiff
path: root/data/graphics/shaders/gles2_vertex.glsl
blob: 83bd7f42d543123c2df953aca368f44d640b1072 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#version 100

attribute vec4 position;
varying vec2 Texcoord;
uniform vec2 screen;
uniform vec2 textureSize;

void main()
{
   Texcoord = vec2(position.z / textureSize.x, position.w / textureSize.y);
   gl_Position = vec4(position.x / screen.x - 1.0, 1.0 - position.y / screen.y, 0.0, 1.0);
}