diff options
Diffstat (limited to 'alacritty/res/text.f.glsl')
-rw-r--r-- | alacritty/res/text.f.glsl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/alacritty/res/text.f.glsl b/alacritty/res/text.f.glsl index cf477eb0..b051ee8d 100644 --- a/alacritty/res/text.f.glsl +++ b/alacritty/res/text.f.glsl @@ -13,9 +13,8 @@ // limitations under the License. #version 330 core in vec2 TexCoords; -flat in vec3 fg; +flat in vec4 fg; flat in vec4 bg; -flat in int colored; uniform int backgroundPass; layout(location = 0, index = 0) out vec4 color; @@ -32,7 +31,7 @@ void main() alphaMask = vec4(1.0); color = vec4(bg.rgb, 1.0); } else { - if (colored != 0) { + if (fg.a != 0.0) { // Color glyphs, like emojis. vec4 glyphColor = texture(mask, TexCoords); alphaMask = vec4(glyphColor.a); @@ -47,7 +46,7 @@ void main() // Regular text glyphs. vec3 textColor = texture(mask, TexCoords).rgb; alphaMask = vec4(textColor, textColor.r); - color = vec4(fg, 1.0); + color = vec4(fg.rgb, 1.0); } } } |