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





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