GAL: Handle text opacity in OpenGL
Vertex alpha was being dropped in the font shader
This commit is contained in:
parent
2f31bf278b
commit
a94a81b9a8
|
@ -388,7 +388,7 @@ void main()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// use the derivative for zoom-adaptive filtering
|
// 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 );
|
gl_FragColor = vec4( gl_Color.rgb, alpha );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue