1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-26 16:34:23 +03:00

remove redundant mix operation from shader

The o_fg_color_mix alpha should already be in range and we
shouldn't need to alter it here.
This commit is contained in:
Wez Furlong 2023-03-31 21:56:01 -07:00
parent 929e86225d
commit a278dbf43f
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -134,7 +134,6 @@ void main() {
// Grayscale poly quad for non-aa text render layers // Grayscale poly quad for non-aa text render layers
colorMask = texture(atlas_nearest_sampler, o_tex); colorMask = texture(atlas_nearest_sampler, o_tex);
color = fg_color; color = fg_color;
color.a = mix(o_fg_color.a, o_fg_color_alt.a, clamp(o_fg_color_mix, 0.0, 1.0));
color.a *= colorMask.a; color.a *= colorMask.a;
} else if (o_has_color == 0.0) { } else if (o_has_color == 0.0) {
// the texture is the alpha channel/color mask // the texture is the alpha channel/color mask