Overlays are blended with the shaded image?

Why is this happening?

Using mask 10 in guest-advanced, XRGB. If I combine this with an overlay that darkens every 4th pixel, the red phosphor gets blended with the black and loses a lot of brightness. The overlay shouldn’t be affected by the shader, and vice versa, right?

You may need to download these and zoom in Gimp/Photoshop/etc to see what I’m describing.

without overlay:

with overlay:

overlay config:

overlays = 1
overlay0_overlay = img/test.png
overlay0_full_screen = true
overlay0_descs = 0
input_overlay_scale = 1.0
input_overlay_auto_scale = false

overlay:

This is probably happening because the overlay is at the pixel level while the mask is at the subpixel level. XRGB is not 4 pixels but 4 subpixels.

XRRGGBB works because is uses 1 subpixel each from 2 adjacent pixels so it is at the pixel level just like the overlay.

I’m sure @guest.r or @hunterk or @DariusG can explain it better than me.