summaryrefslogblamecommitdiff
path: root/data/graphics/shaders/texture_vertex.glsl
blob: 383181cd95d2b1c19c29a11a34ec55ff7c37b46f (plain) (tree)
1
2
3
4
5
6
7
8
9
                 
                   





                        
                                                                                           
 
#version 150 core
in vec2 texturePos;
in vec2 texcoord;
out vec2 Texcoord;
uniform vec2 screen;
void main()
{
    Texcoord = texcoord;
    gl_Position = vec4(texturePos.x / screen.x - 1, 1 - texturePos.y / screen.y, 0.0, 1.0);
}