summaryrefslogtreecommitdiffstats
path: root/src/Runtime/res/effectlib/distancefieldtext_core.frag
blob: 0f848bc1ea644a1e8022b37ec8b553f70d414331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
in vec2 sampleCoord;

out vec4 fragColor;

uniform sampler2D _qt_texture;
uniform vec4 color;

in vec2 alphas;

void main()
{
    fragColor = color * smoothstep(alphas.x, alphas.y,
                                   texture(_qt_texture, sampleCoord).r);
}