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

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