diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-12-17 19:06:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-17 19:06:07 +0000 |
commit | cf9d94eb1256881d48b1a3dc63db6caf32bfb841 (patch) | |
tree | daae5794b13ba42cdfe57b431eedd76aa8a12b49 /res/text.f.glsl | |
parent | 0c3e28617a95b4ca30ad9bdbb9114f1e4d41dce5 (diff) | |
download | r-alacritty-cf9d94eb1256881d48b1a3dc63db6caf32bfb841.tar.gz r-alacritty-cf9d94eb1256881d48b1a3dc63db6caf32bfb841.tar.bz2 r-alacritty-cf9d94eb1256881d48b1a3dc63db6caf32bfb841.zip |
Add color option to visual bell
This adds the option to specify the color of the visual bell using the
`visual_bell.color` configuration setting.
This is done by rendering a big quad over the entire screen, which also
opens up options to draw other arbitrary rectangles on the screen in the
future.
Diffstat (limited to 'res/text.f.glsl')
-rw-r--r-- | res/text.f.glsl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/res/text.f.glsl b/res/text.f.glsl index 5915960f..532cf929 100644 --- a/res/text.f.glsl +++ b/res/text.f.glsl @@ -15,7 +15,6 @@ in vec2 TexCoords; in vec3 fg; in vec4 bg; -flat in float vb; flat in int background; layout(location = 0, index = 0) out vec4 color; @@ -31,7 +30,7 @@ void main() discard; alphaMask = vec4(1.0); - color = vec4(bg.rgb + vb, 1.0); + color = vec4(bg.rgb, 1.0); } else { vec3 textColor = texture(mask, TexCoords).rgb; alphaMask = vec4(textColor, textColor.r); |