mirror of
https://github.com/wez/wezterm.git
synced 2024-11-30 06:03:39 +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:
parent
929e86225d
commit
a278dbf43f
@ -134,7 +134,6 @@ void main() {
|
||||
// Grayscale poly quad for non-aa text render layers
|
||||
colorMask = texture(atlas_nearest_sampler, o_tex);
|
||||
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;
|
||||
} else if (o_has_color == 0.0) {
|
||||
// the texture is the alpha channel/color mask
|
||||
|
Loading…
Reference in New Issue
Block a user