diff options
Diffstat (limited to 'src/quick/scenegraph/shaders/distancefieldoutlinetext_core.frag')
-rw-r--r-- | src/quick/scenegraph/shaders/distancefieldoutlinetext_core.frag | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/scenegraph/shaders/distancefieldoutlinetext_core.frag b/src/quick/scenegraph/shaders/distancefieldoutlinetext_core.frag index 622e353019..73cf9a1c29 100644 --- a/src/quick/scenegraph/shaders/distancefieldoutlinetext_core.frag +++ b/src/quick/scenegraph/shaders/distancefieldoutlinetext_core.frag @@ -16,5 +16,6 @@ void main() { float d = texture(_qt_texture, sampleCoord).r; float a = smoothstep(alphaMin, alphaMax, d); - fragColor = (1.0 - a) * styleColor * smoothstep(outlineAlphaMax0, outlineAlphaMax1, d); + fragColor = step(1.0 - a, 1.0) * mix(styleColor, color, a) + * smoothstep(outlineAlphaMax0, outlineAlphaMax1, d); } |