Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

fix(gl): keep text colour alpha in the OpenGL glyph shader

RoversX606df3251c14
diff --git a/wezterm-gui/src/glyph-frag.glsl b/wezterm-gui/src/glyph-frag.glsl
index 3484640a..fc3eec1e 100644
--- a/wezterm-gui/src/glyph-frag.glsl
+++ b/wezterm-gui/src/glyph-frag.glsl
@@ -189,7 +189,11 @@ void main() {
// and we need to tint with the fg_color
color = fg_color;
if (!subpixel_aa) {
- color.a = colorMask.a;
+ // Multiply rather than replace, as the WebGPU shader does: the mask
+ // decides the shape, the colour how present the glyph is. Replacing
+ // it dropped any opacity the caller asked for, so text that was meant
+ // to fade stayed solid here.
+ color.a = colorMask.a * fg_color.a;
}
color = apply_hsv(color, foreground_text_hsb);
}