share/hedgewars/Data/Shaders/default.fs
author Wuzzy <almikes@aol.com>
Sat, 21 Nov 2015 21:37:20 +0100
changeset 11494 e02f2e98bf71
parent 11317 62287d4044e7
child 11795 2028bd2a6c5b
permissions -rw-r--r--
Use Goals instead of ShowMission for Highlander mission dialog

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