aboutsummaryrefslogtreecommitdiff
path: root/alacritty/res/text.f.glsl
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2021-08-16 14:49:14 +0300
committerGitHub <noreply@github.com>2021-08-16 14:49:14 +0300
commitc24d7dfd0d2d8849f0398d7cb1a65d6562ee7a0d (patch)
tree07470a57149be0fdb907ffb33ccd124dfb57848a /alacritty/res/text.f.glsl
parent9a8ae43c0aa9e598411964c458c88f58d6ec41d8 (diff)
downloadr-alacritty-c24d7dfd0d2d8849f0398d7cb1a65d6562ee7a0d.tar.gz
r-alacritty-c24d7dfd0d2d8849f0398d7cb1a65d6562ee7a0d.tar.bz2
r-alacritty-c24d7dfd0d2d8849f0398d7cb1a65d6562ee7a0d.zip
Add option to apply opacity to all background colors
In some cases it could be desired to apply 'background_opacity' to all background colors instead of just 'colors.primary.background', thus adding an 'colors.opaque_background_colors' option to control that. Fixes #741.
Diffstat (limited to 'alacritty/res/text.f.glsl')
-rw-r--r--alacritty/res/text.f.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/res/text.f.glsl b/alacritty/res/text.f.glsl
index d5e26881..5b4e3da6 100644
--- a/alacritty/res/text.f.glsl
+++ b/alacritty/res/text.f.glsl
@@ -18,7 +18,7 @@ void main() {
}
alphaMask = vec4(1.0);
- color = vec4(bg.rgb, 1.0);
+ color = vec4(bg.rgb, bg.a);
} else if ((int(fg.a) & COLORED) != 0) {
// Color glyphs, like emojis.
vec4 glyphColor = texture(mask, TexCoords);