mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-03 04:34:21 -05:00
c70acbac0b
Uses the GL_ARB_blend_func_extended to get single-pass, per-channel alpha blending. gl_generator is now used instead of gl to enable the extension. The background color is removed since that presumably needs to run in a separate pass.
14 lines
293 B
GLSL
14 lines
293 B
GLSL
#version 330 core
|
|
in vec2 TexCoords;
|
|
|
|
layout(location = 0, index = 0) out vec4 color;
|
|
layout(location = 0, index = 1) out vec4 alphaMask;
|
|
|
|
uniform sampler2D mask;
|
|
uniform vec3 textColor;
|
|
|
|
void main()
|
|
{
|
|
alphaMask = vec4(texture(mask, TexCoords).rgb, 1.);
|
|
color = vec4(textColor, 1.);
|
|
}
|