summaryrefslogtreecommitdiffstats
path: root/src/runtime/shaders/distancefieldtext_core.frag
blob: bac8ca6627700ce9e11becc5d6928a06f18aad49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#version 150 core

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