share/hedgewars/Data/Shaders/default.vs
branchwebgl
changeset 8334 abb48dd39e26
child 11317 62287d4044e7
equal deleted inserted replaced
8332:9333216f2054 8334:abb48dd39e26
       
     1 
       
     2 
       
     3 attribute vec2 vertex;
       
     4 attribute vec2 texcoord;
       
     5 attribute vec4 colors;
       
     6 
       
     7 varying vec2 tex;
       
     8 
       
     9 uniform mat4 mvp;
       
    10 
       
    11 void main()
       
    12 {
       
    13     vec4 p = mvp * vec4(vertex, 0.0, 1.0);
       
    14     gl_Position = p;
       
    15     tex = texcoord;
       
    16 }