diff options
Diffstat (limited to 'alacritty/res/text.v.glsl')
-rw-r--r-- | alacritty/res/text.v.glsl | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/alacritty/res/text.v.glsl b/alacritty/res/text.v.glsl index 8978c111..d15728dc 100644 --- a/alacritty/res/text.v.glsl +++ b/alacritty/res/text.v.glsl @@ -21,19 +21,15 @@ layout (location = 1) in vec4 glyph; // uv mapping. layout (location = 2) in vec4 uv; -// Text fg color. -layout (location = 3) in vec3 textColor; +// Text foreground rgb packed together with multicolor flag. +layout (location = 3) in vec4 textColor; // Background color. layout (location = 4) in vec4 backgroundColor; -// Set to 1 if the glyph colors should be kept. -layout (location = 5) in int coloredGlyph; - out vec2 TexCoords; -flat out vec3 fg; +flat out vec4 fg; flat out vec4 bg; -flat out int colored; // Terminal properties uniform vec2 cellDim; @@ -74,6 +70,5 @@ void main() } bg = vec4(backgroundColor.rgb / 255.0, backgroundColor.a); - fg = textColor / vec3(255.0, 255.0, 255.0); - colored = coloredGlyph; + fg = vec4(textColor.rgb / 255.0, textColor.a); } |