share/hedgewars/Data/Shaders/default.fs
author unc0rr
Tue, 11 Sep 2018 21:16:27 +0200
branchqmlfrontend
changeset 13802 5c0ea888c926
parent 12883 adb1fccc706a
child 12886 a089326f0e16
permissions -rw-r--r--
Make rendering work

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