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.v.glsl | |
parent | 0c3e28617a95b4ca30ad9bdbb9114f1e4d41dce5 (diff) | |
download | alacritty-cf9d94eb1256881d48b1a3dc63db6caf32bfb841.tar.gz 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.v.glsl')
-rw-r--r-- | res/text.v.glsl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/res/text.v.glsl b/res/text.v.glsl index 9580c71f..32aee5ac 100644 --- a/res/text.v.glsl +++ b/res/text.v.glsl @@ -25,6 +25,7 @@ layout (location = 3) in vec4 uv; // text fg color layout (location = 4) in vec3 textColor; + // Background color layout (location = 5) in vec4 backgroundColor; @@ -36,12 +37,10 @@ out vec4 bg; uniform vec2 termDim; uniform vec2 cellDim; -uniform float visualBell; uniform int backgroundPass; // Orthographic projection uniform mat4 projection; -flat out float vb; flat out int background; void main() @@ -73,7 +72,6 @@ void main() TexCoords = uvOffset + vec2(position.x, 1 - position.y) * uvSize; } - vb = visualBell; background = backgroundPass; bg = vec4(backgroundColor.rgb / 255.0, backgroundColor.a); fg = textColor / vec3(255.0, 255.0, 255.0); |