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