share/hedgewars/Data/Shaders/default.fs
author sheepluva
Sat, 16 Jan 2016 19:50:38 +0100
changeset 11517 b3ee79e8e3b9
parent 11317 62287d4044e7
child 11795 2028bd2a6c5b
permissions -rw-r--r--
find hg revision even if github author name is not the same as hg author (kodabb vs koda)

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;
    }
}