Use Premultiplied Alpha for Text and Game Capture (#1578)
The GDI+ based Text Source actually uses Premultiplied Alpha. The edges of the fonts are therefore incorrectly blended, causing ugly artifacts especially if bright text above a bright background is used. Here's an image comparing the new text blending (left) to before (right):  Additionally, the game capture has the same problem, so premultiplied alpha is used there as well now.
This commit is contained in:
committed by
Colin Edwards
parent
0d9fb6c8b0
commit
7c53483388
@@ -1771,7 +1771,7 @@ static void game_capture_render(void *data, gs_effect_t *effect)
|
||||
return;
|
||||
|
||||
effect = obs_get_base_effect(gc->config.allow_transparency ?
|
||||
OBS_EFFECT_DEFAULT : OBS_EFFECT_OPAQUE);
|
||||
OBS_EFFECT_PREMULTIPLIED_ALPHA : OBS_EFFECT_OPAQUE);
|
||||
|
||||
while (gs_effect_loop(effect, "Draw")) {
|
||||
obs_source_draw(gc->texture, 0, 0, 0, 0,
|
||||
|
Reference in New Issue
Block a user