Fix: Overlay: Facing overlay is not transparent with zero alpha

The recent changes removed the blending when rendering
to the framebuffer. The blending was doing the
premultiplication.

Fix #122470
This commit is contained in:
Clément Foucault
2024-06-04 17:19:22 +02:00
parent 916d9d5beb
commit 57e92e9192

View File

@@ -5,4 +5,6 @@
void main()
{
fragColor = gl_FrontFacing ? colorFaceFront : colorFaceBack;
/* Pre-multiply the output as we do not do any blending in the framebuffer. */
fragColor.rgb *= fragColor.a;
}