summaryrefslogtreecommitdiffstats
path: root/src/extras/shaders/gl3/distancefieldtext.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/extras/shaders/gl3/distancefieldtext.frag')
-rw-r--r--src/extras/shaders/gl3/distancefieldtext.frag2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extras/shaders/gl3/distancefieldtext.frag b/src/extras/shaders/gl3/distancefieldtext.frag
index 23dff8e0f..8e0684adc 100644
--- a/src/extras/shaders/gl3/distancefieldtext.frag
+++ b/src/extras/shaders/gl3/distancefieldtext.frag
@@ -34,6 +34,6 @@ void main()
float maxAlpha = threshold + range;
float distVal = texture(distanceFieldTexture, texCoord).r;
- fragColor = color * smoothstep(minAlpha, maxAlpha, distVal);
+ fragColor = vec4(color.rgb, color.a * smoothstep(minAlpha, maxAlpha, distVal));
gl_FragDepth = gl_FragCoord.z - zValue * 0.00001;
}