share/hedgewars/Data/Shaders/default.fs
author sheepluva
Tue, 10 Nov 2015 22:37:54 +0100
branchsdl2transition
changeset 11364 b0df3f2fcafc
parent 11317 62287d4044e7
child 11795 2028bd2a6c5b
permissions -rw-r--r--
use SDL2 to copy to clipboard

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