share/hedgewars/Data/Shaders/default.fs
author nemo
Sat, 25 Oct 2014 10:42:30 -0400
changeset 10441 d2f599997b54
parent 8334 abb48dd39e26
child 11317 62287d4044e7
permissions -rw-r--r--
Revert hog tinting from rdb65298717da since it wasn't sufficiently complete for a release. More sprites need converting, and there's a slight bug in hog tinting, for away hogs with hats I believe.

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