GAL: Handle text opacity in OpenGL

Vertex alpha was being dropped in the font shader
This commit is contained in:
Jon Evans 2020-07-12 10:45:49 -04:00
parent 2f31bf278b
commit a94a81b9a8
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ void main()
#endif
// use the derivative for zoom-adaptive filtering
float alpha = smoothstep( 0.5 - derivative, 0.5 + derivative, dist );
float alpha = smoothstep( 0.5 - derivative, 0.5 + derivative, dist ) * gl_Color.a;
gl_FragColor = vec4( gl_Color.rgb, alpha );
}