share/hedgewars/Data/Shaders/default.vs
changeset 7188 580cd247511e
parent 7138 f8248bcba8f1
child 11317 62287d4044e7
equal deleted inserted replaced
7186:013deb83086b 7188:580cd247511e
     1 // !!!just testing!!! 
     1 #version 130
     2 // This is not GLSL 1.3+ compatible, as its using the compatibility profile!
     2 
       
     3 in vec2 vertex;
       
     4 in vec2 texcoord;
       
     5 in vec4 colors;
       
     6 
       
     7 out vec2 tex;
       
     8 
     3 uniform mat4 mvp;
     9 uniform mat4 mvp;
     4 varying vec4 tint;
       
     5 
    10 
     6 void main()
    11 void main()
     7 {
    12 {
     8     gl_Position = mvp * gl_Vertex;
    13     vec4 p = mvp * vec4(vertex, 0.0f, 1.0f);
     9     gl_TexCoord[0] = gl_MultiTexCoord0;
    14     gl_Position = p;
    10     tint = gl_Color;
    15     tex = texcoord;
    11 }
    16 }