share/hedgewars/Data/Shaders/default.fs
author unc0rr
Thu, 04 Jun 2015 19:57:04 +0300
branch0.9.21
changeset 10773 c91811e09361
parent 8334 abb48dd39e26
child 11317 62287d4044e7
permissions -rw-r--r--
More ifdefs \o/ (fix build even more)

uniform sampler2D tex0;
uniform vec4 tint;
uniform bool enableTexture;

varying vec2 tex;


void main()
{
    if(enableTexture){
        gl_FragColor = texture2D(tex0, tex) * tint;
    }else{
        gl_FragColor = tint;
    }
}