blob: 250ed322a1f0bf8cb0d9dc900efebd7e3ab4cc95 [file] [log] [blame]
varying highp vec2 sampleCoord;
uniform sampler2D _qt_texture;
uniform lowp vec4 color;
uniform lowp vec4 styleColor;
uniform mediump float alphaMin;
uniform mediump float alphaMax;
uniform mediump float outlineAlphaMax0;
uniform mediump float outlineAlphaMax1;
void main()
{
mediump float d = texture2D(_qt_texture, sampleCoord).a;
gl_FragColor = mix(styleColor, color, smoothstep(alphaMin, alphaMax, d))
* smoothstep(outlineAlphaMax0, outlineAlphaMax1, d);
}