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:
parent
929e86225d
commit
a278dbf43f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user