summaryrefslogtreecommitdiff
path: root/res/text.f.glsl
diff options
context:
space:
mode:
authorM. Stoeckl <manuel.stoeckl93@gmail.com>2019-02-04 19:03:25 +0000
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-02-04 19:03:25 +0000
commit40237b213a847cb3fabaa4da0ef2f295e9bf56a9 (patch)
tree37172e7a5d0a6de572927a8a0c57e7b34c939f3a /res/text.f.glsl
parent97e801a73e8070cfdbe317831c7264bdc149f212 (diff)
downloadalacritty-40237b213a847cb3fabaa4da0ef2f295e9bf56a9.tar.gz
alacritty-40237b213a847cb3fabaa4da0ef2f295e9bf56a9.zip
Simplify text shader
Diffstat (limited to 'res/text.f.glsl')
-rw-r--r--res/text.f.glsl9
1 files changed, 4 insertions, 5 deletions
diff --git a/res/text.f.glsl b/res/text.f.glsl
index 532cf929..70ad3d19 100644
--- a/res/text.f.glsl
+++ b/res/text.f.glsl
@@ -13,19 +13,18 @@
// limitations under the License.
#version 330 core
in vec2 TexCoords;
-in vec3 fg;
-in vec4 bg;
-flat in int background;
+flat in vec3 fg;
+flat in vec4 bg;
+uniform int backgroundPass;
layout(location = 0, index = 0) out vec4 color;
layout(location = 0, index = 1) out vec4 alphaMask;
-uniform float bgOpacity;
uniform sampler2D mask;
void main()
{
- if (background != 0) {
+ if (backgroundPass != 0) {
if (bg.a == 0.0)
discard;