share/hedgewars/Data/Shaders/default.fs
branchwebgl
changeset 8334 abb48dd39e26
child 11317 62287d4044e7
equal deleted inserted replaced
8332:9333216f2054 8334:abb48dd39e26
       
     1 uniform sampler2D tex0;
       
     2 uniform vec4 tint;
       
     3 uniform bool enableTexture;
       
     4 
       
     5 varying vec2 tex;
       
     6 
       
     7 
       
     8 void main()
       
     9 {
       
    10     if(enableTexture){
       
    11         gl_FragColor = texture2D(tex0, tex) * tint;
       
    12     }else{
       
    13         gl_FragColor = tint;
       
    14     }
       
    15 }