share/hedgewars/Data/Shaders/default.fs
author nemo
Fri, 05 Jan 2018 16:12:19 -0500
changeset 12879 286e170f4f6b
parent 11795 2028bd2a6c5b
child 12886 a089326f0e16
permissions -rw-r--r--
apparently this is GLES2 only

#ifdef GL_ES
precision mediump float;
#endif

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